87,910
社区成员
发帖
与我相关
我的任务
分享
<script language="javascript">
window.onload = function () {
var url = window.location.href;
if (url == "http://vivszcom72.s132.pc51.com/viv1/products.php?pgid=298178") {
document.getElementById("pimg").src = "images/1.jpg";
} else if(url == "http://vivszcom72.s132.pc51.com/viv1/products.php?pgid=298179") {
document.getElementById("pimg").src = "images/2.jpg";
} else {
document.getElementById("pimg").src = "images/3.jpg";
}
}
</script>
<img id="pimg" src="images/2.jpg"></img>
<img id="pimg" src="images/2.jpg">
<script language="javascript">
var url = windows.location.href;
if (url = "http://vivszcom72.s132.pc51.com/viv1/products.php?pgid=298178") {
document.getElementById("pimg").src = "images/1.jpg";
}
if (url = "http://vivszcom72.s132.pc51.com/viv1/products.php?pgid=298179") {
document.getElementById("pimg").src = "images/2.jpg";
}
else {
document.getElementById("pimg").src = "images/2.jpg";
}
</script>