JS超难题 可知道如何将一张用小图片拼接成的大图片,当鼠标点击时将所点到的小图片的信息通过传参的方法传到另一个页面中去用JS写的??? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看不出这题难在哪里....<script>function sendValue(img){ alert("你现在点击了第"+img.thevalue+"号图片,点确定之后将该值传给一个网页!")//打开网页的方式传参:window.open("另一个网页.html?thevalue="+img.value);//ajax方式传参://懒的写你自己写}</script><img src="http://community.csdn.net/Tree/TreeImages/P1.gif" thevalue="1" onclick="sendValue(this)" /><img src="http://community.csdn.net/Tree/TreeImages/P1.gif" thevalue="2" onclick="sendValue(this)" /><img src="http://community.csdn.net/Tree/TreeImages/P1.gif" thevalue="3" onclick="sendValue(this)" /><img src="http://community.csdn.net/Tree/TreeImages/P1.gif" thevalue="4" onclick="sendValue(this)" /><img src="http://community.csdn.net/Tree/TreeImages/P1.gif" thevalue="5" onclick="sendValue(this)" /><img src="http://community.csdn.net/Tree/TreeImages/P1.gif" thevalue="6" onclick="sendValue(this)" /> 请教javascript高手个问题 为函数添加参数提示缺少标识符 js 如何连接mysql 和oracle?我知道如何连接access js效果的页面,在WIN SERVER2003中无效? 怎样动态改变父页面中指定iframe的高度? 动态取得控件名? 关于超级链接的效果(技术问题,在线等) 不好意思,最后一个问题 大神给看看这段js如何运行不了 swiper 动态加载后台数据到slide中,分页符只有一个pagination怎么解决? java随机数改进问题 急!急!javascript 文件动动加载的问题
<script>
function sendValue(img){
alert("你现在点击了第"+img.thevalue+"号图片,点确定之后将该值传给一个网页!")//打开网页的方式传参:
window.open("另一个网页.html?thevalue="+img.value);
//ajax方式传参:
//懒的写你自己写
}
</script>
<img src="http://community.csdn.net/Tree/TreeImages/P1.gif" thevalue="1" onclick="sendValue(this)" />
<img src="http://community.csdn.net/Tree/TreeImages/P1.gif" thevalue="2" onclick="sendValue(this)" />
<img src="http://community.csdn.net/Tree/TreeImages/P1.gif" thevalue="3" onclick="sendValue(this)" />
<img src="http://community.csdn.net/Tree/TreeImages/P1.gif" thevalue="4" onclick="sendValue(this)" />
<img src="http://community.csdn.net/Tree/TreeImages/P1.gif" thevalue="5" onclick="sendValue(this)" />
<img src="http://community.csdn.net/Tree/TreeImages/P1.gif" thevalue="6" onclick="sendValue(this)" />