臭氧浴会变白吗:JS 求教.在线等.谢谢各位

来源:百度文库 编辑:高校问答 时间:2024/04/29 10:08:34
下面这段JS中有变量.'title' 是根据连接传送的

我想增加一个变量. NewsID 变量在连接页面已经有具体值.

应用在

var objBottomNavbbsLink = document.createElement("a");
objBottomNavbbsLink.setAttribute('id','bottomNavClose');
objBottomNavbbsLink.setAttribute('href','NewsReview.asp');
objBottomNavbbsLink.onclick = function() { window.open('NewsReview.asp?NewsID=(NewsID)'); return false; }
objBottomNav.appendChild(objBottomNavbbsLink);

这个部分. 请问该怎么弄呢?

因为实在贴不下 我放在百度空间了. 希望各位不嫌劳烦. 定当追加分数

http://hi.baidu.com/xjmobile/blog/item/375a8e181919cbb44aedbcc3.html

谢谢

不明白你到底问什么。。。这个是关于DOM的问题。。。
在onclick之前,加一个:
objBottomNavbbsLink.setAttribute('title',NewsID);
不知道这样是不是你想要的,NewsID存的是imageLink的title属性,imageLink应该是一个img的element