Piticu Posted October 20, 2009 Share Posted October 20, 2009 Look at this with Firefox and after that with IE http://piticu.byethost14.com/skola/ .will se that doesn't work in IE:(( and i don;t know why:( if i made it normally like a new page with the content only...it's works..... i thing in INDEX maybe.....or i don't know..help me please:(( Link to comment Share on other sites More sharing options...
jeffman Posted October 20, 2009 Share Posted October 20, 2009 It's not just Explorer. The slideshow doesn't work in my Firefox, either.1. You call the slideit() function too soon. The image it refers do has not yet been loaded into the DOM, so it cannot get a reference. You should place the script AFTER the html for the image or (better) set the slideit() function to run after the page loads. That looks like this: window.onload = slideit; There are no (parentheses) on purpose.2. This is VERY old code. 10-11 years old. More than half the age of the WWW. HTML no longer supports a name attribute for images. So document.images.slide may not get what you want. Change the name to an id. As in <img id="slide" blah blah blah>. Then get a reference to your image using document.getElementById("slide");3. This line of code is garbled: if (step"<"7). I think you mean step < 7 .In addition to this, stop using a transitional doctype, write strict code, and stop using tables for layout. Link to comment Share on other sites More sharing options...
Piticu Posted October 20, 2009 Author Share Posted October 20, 2009 i resolved it.....i wrote the SCRIPT in the HEAD tag and because it did't work.Now it's all good.i hope:)....thaks for help....and about that script i didn't make it....i did't learn yet JAVA:).. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.