On 5/9/06, Dave Goodchild <[EMAIL PROTECTED]> wrote: > Hi all. I am nearing completion on the following site: > > http://www.web-buddha.co.uk/sandbox/karen/ > > ...am leaving final browser testing until the site looks cool in Mozilla > (there are some text sising issues in IE that I am aware of but not too > concerned about at the moment). > > The site is an online portfolio for a photographer and the gallery is > navigated through by hovering over the thumbnails to change the main image > source, controlled by javascript. Works like a dream in FF but in IE I get a > scripting error; anyone know what causes that off the bat, I am researching > elsewhere but any quick hint would be great. I know it's a js question and a > little off-topic, apologies. > > -- > http://www.web-buddha.co.uk > > dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml, css) > > look out for project karma, our new venture, coming soon! > ______________________________________________________________________ > css-discuss [EMAIL PROTECTED] > http://www.css-discuss.org/mailman/listinfo/css-d > IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 > List wiki/FAQ -- http://css-discuss.incutio.com/ > Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ >
Hi Dave! Your problem seems to be the use of the reserved word "class" in your randomImage function definition. Have a look at line 5 of your master.js: ---------- javascript ----------- function randomImage(img1,img2,img3,alt1,alt2,alt3,height,width,class) { ---------- javascript ----------- You should probably try to change it to: ---------- javascript ----------- function randomImage(img1,img2,img3,alt1,alt2,alt3,height,width,className) { ---------- javascript ----------- Note that you will also have to change a little bit of your code on line 19, which refers to the "class" variable. Here's some more info on reserved words in JavaScript: http://www.tesre.bo.cnr.it/Manuals/HTML_Dictionary/netscape/javascr/reserve.html http://javascript.about.com/library/blreserved.htm - Tisho ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/