0

?我上传测试的网站有问题。当它们在 Dreamweaver cs6 中本地检查时,它们都可以正常工作,但是在上传它们时,它们会执行此操作,滚动图像您会看到问题,当将鼠标悬停在德克萨斯长角牛图像上时出现问题并且密歇根州图像没有加载任何人看到我的错误。

这是重要的代码感谢您的帮助以及指向网站页面的链接http://odintest.co.nf/product_select.html

               <script type="text/javascript">
    function changeImage(a) {
        document.getElementById("img").src=a;
    }
    </script>
<div id="main_img">
    <img id="img" src="images/placeholder.jpg"/>
</div>
   <div id="thumb_img">
    <img src='images/notredamelogo.JPG' width="200" height="150"       onmouseover='changeImage("images/notredame.JPG");'>
    <img src="images/ohiostatelogo.jpg"  onmouseover='changeImage("images/ohiostate.jpg");'>
    <a href="product_display_michigan.html"><img src='images/michiganstatelogo.jpg'  onmouseover='changeImage("images/michiganstate.jpg");'></a>
    <a href="product_display_template.html"><img src='images/floridagatorslogo.jpg'  onmouseover='changeImage("images/floridagators.jpg");'></a>
    <a href="index.html"><img src='images/texaslonghornslogo.jpg'  onmouseover='changeImage("images/texaslonghorns.jpg");'></a>
</div>
4

2 回答 2

0

好吧,我看到了 2 个问题。

  1. 对我来说,“notredamelogo.JPG”没有加载。可能是因为“JPG”。改用“jpg”。
  2. 无法为 texaslonghorns 加载主图像。这可能是因为该目录中不存在该图像和/或图像名称或扩展名不正确。
于 2013-02-16T23:12:33.090 回答
0
  1. 我不知道你在描述什么问题,但我猜是悬停延迟。使用 javascript 预加载器或将它们加载到具有沿线样式的 div 中,{position: absolute; left: -999em;}以使它们远离屏幕。这使得图像在悬停时立即可用,通常您会在下载它们时看到延迟。

  2. 服务器上似乎不存在http://odintest.co.nf/images/texaslonghorns.jpg上的图像。

于 2013-02-16T23:05:57.343 回答