Can someone explain???

liunx

Guest
Why when I run a html page from my hard drive. It is fine, more precisely, what I want.<br />
<br />
And when I run it off the net the buttons jump up like Mexican jumping beans.<br />
<br />
Link to website version. (<!-- m --><a class="postlink" href="http://www.birkemusik.dk/test/Testing.html">http://www.birkemusik.dk/test/Testing.html</a><!-- m -->)<br />
Link to Zip file, so you can run it from you hard drive.(Really small) (<!-- m --><a class="postlink" href="http://www.birkemusik.dk/test/Website_tester.zip">http://www.birkemusik.dk/test/Website_tester.zip</a><!-- m -->)<br />
<br />
The images are so get bigger when you scroll over them individually, but as it is now, the whole div tag jump up then the individual image increases. :confused: <br />
<br />
Any advice.<!--content-->that typically happens when ther is a container smaller then image size,which means that the div element that contains all images its width,height does not match that of the lager images.<br />
<br />
Second you have couple more problems,Put the stylesheet import in one line,and there is no load function in the document.<!--content-->Thx.<br />
<br />
You lost me on a few things though.<br />
<br />
1) There are no pre set WxH for the DIV element, and the images themselves are the same WxH, both large and small, so that shouldn't effect, the div tags. Finally, if this is true about the WxH of the div tags effecting this, why does the version on the hard drive is no effected, where as the one on the net is.<br />
<br />
2) Thank for the note on the style sheet import, the reason the load script it not there, is because I stripped it down to only the element that are directly involved in the problem, i.e. the buttons. A) to make sure there is no conflict, and B) It makes it easier to solve when looking at it. The load command it left over from the full web page.<!--content-->Ok the code now looks like this:<br />
<br />
<div class="bottom" > <br />
<div style="text-align:center;" width="420" height="50"><br />
<br />
<a HREF=http://www.webdeveloper.com/forum/archive/index.php/"Website" onmouseover="showButton('1_ON')" onmouseout="showButton('1_OFF')"><IMG <br />
<br />
SRC=http://www.webdeveloper.com/forum/archive/index.php/"pictures/guitar.png" ALT="String" BORDER="0" ALIGN=middle name=button1></a><br />
<a HREF=http://www.webdeveloper.com/forum/archive/index.php/"Website" onmouseover="showButton('2_ON')" onmouseout="showButton('2_OFF')"><IMG <br />
<br />
SRC=http://www.webdeveloper.com/forum/archive/index.php/"pictures/sax.png" ALT="Winds" BORDER="0" ALIGN=middle name=button2></a><br />
<a HREF=http://www.webdeveloper.com/forum/archive/index.php/"Website" onmouseover="showButton('3_ON')" onmouseout="showButton('3_OFF')"><IMG <br />
<br />
SRC=http://www.webdeveloper.com/forum/archive/index.php/"pictures/piano.png" ALT="Piano" BORDER="0" ALIGN=middle name=button3></a><br />
<a HREF=http://www.webdeveloper.com/forum/archive/index.php/"Website" onmouseover="showButton('4_ON')" onmouseout="showButton('4_OFF')"><IMG <br />
<br />
SRC=http://www.webdeveloper.com/forum/archive/index.php/"pictures/cello.png" ALT="Cello" BORDER="0" ALIGN=middle name=button4></a><br />
<a HREF=http://www.webdeveloper.com/forum/archive/index.php/"Website" onmouseover="showButton('5_ON')" onmouseout="showButton('5_OFF')"><IMG <br />
<br />
SRC=http://www.webdeveloper.com/forum/archive/index.php/"pictures/drum.png" ALT="String" BORDER="0" ALIGN=middle name=button5></a><br />
<a HREF=http://www.webdeveloper.com/forum/archive/index.php/"Website" onmouseover="showButton('6_ON')" onmouseout="showButton('6_OFF')"><IMG <br />
<br />
SRC=http://www.webdeveloper.com/forum/archive/index.php/"pictures/xilaphone.png" ALT="Xilaphone" BORDER="0" ALIGN=middle name=button6></a><br />
<a HREF=http://www.webdeveloper.com/forum/archive/index.php/"Website" onmouseover="showButton('7_ON')" onmouseout="showButton('7_OFF')"><IMG <br />
<br />
SRC=http://www.webdeveloper.com/forum/archive/index.php/"pictures/singing.png" ALT="Singing" BORDER="0" ALIGN=middle name=button7></a><br />
<a HREF=http://www.webdeveloper.com/forum/archive/index.php/"Website" onmouseover="showButton('8_ON')" onmouseout="showButton('8_OFF')"><IMG <br />
<br />
SRC=http://www.webdeveloper.com/forum/archive/index.php/"pictures/together.png" ALT="Together" BORDER="0" ALIGN=middle name=button8></a><br />
<br />
</div> <br />
</div><br />
<br />
<br />
Unfortunately it did not help. :confused:<!--content-->Here take a look and see what I meant..<br />
<br />
<!-- m --><a class="postlink" href="http://68.145.35.86/temp/Website_tester/Testing.html">http://68.145.35.86/temp/Website_tester/Testing.html</a><!-- m --><!--content-->Does it help to specify a width and height for the images? e.g.<br />
<br />
<a HREF=http://www.webdeveloper.com/forum/archive/index.php/"Website" onmouseover="showButton('8_ON')" onmouseout="showButton('8_OFF')"><br />
<IMG SRC=http://www.webdeveloper.com/forum/archive/index.php/"pictures/together.png" ALT="Together" BORDER="0" ALIGN="middle" name="button8" width="24" height="30"></a><br />
<br />
Or whatever your width and height are.<!--content-->Ok, getting closer to an anwer, but a hell of a lot more question.<br />
<br />
Did a test (<!-- m --><a class="postlink" href="http://www.birkemusik.dk/test/testing1.html">http://www.birkemusik.dk/test/testing1.html</a><!-- m -->)<br />
<br />
I add the border to 1, which quickly show me the problem. the pictures were at different sizes, when they are not suppose to be.<br />
<br />
So I force the width height of the buttons to the size the should be. In this example, 97X44 for the guitar.<br />
<br />
I then notice that the image while the mouse was not over, was pixalated. :confused: :confused: :confused: <br />
That should not be, the 2 pictures, guitar, and guitar1, both have the same WxH. Guitar sinply has more white around it.<br />
<br />
So I inserted the 2 picture side by side to see what was going on. Lo and behold the pictures are 2 different sizes.<br />
Right click on them to see properties, and they are different WxH, but if I open the pictures, after triple checking they have the same WxH. So some how, so reason, the white in the around the picture in guitar is being croped off.:confused: :mad: :confused: :mad: <br />
<br />
*goes away, and comes back*<br />
<br />
Fixed!!! the file names where the same from previous sites, guitar, and so on. There was a detail I notice on the small picture, a detail that has been removed a while a go. I flushed the server, and did a complete new upload, and renamed the pictures, to more unique names, and it work. The server was using the old file which were at a smaller WxH than they are now, to allow for the white border surrounding. <br />
<br />
Take a look (<!-- m --><a class="postlink" href="http://www.birkemusik.dk/test/testing2.html">http://www.birkemusik.dk/test/testing2.html</a><!-- m -->)<br />
<br />
Thanks a lot for your time, and efforts though, hopfully one day I will know enough not to bug you guys. Or at the very least, to check EVERY possible scenario before posting.<!--content-->
 
Back
Top