![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I have a function that works in firefox, but is having some issues in IE. What it does is place an image in a specified cell, when an icon in the adjacent cell is clicked. |
|
I have to click the link half a dozen times for the full size image to load in the adjacent cell. It appears to load %20 of the image then stops. In firefox, I click once and it works. any ideas? |
|
Here is the offending code, and well at the HTML. I don't know if it matters, but I put all my javascript functions in a separate file. function changeContent(id,shtml) { if (document.getElementById || document.all) { var repl = document.getElementById? document.getElementById(id): document.all[id]; if (repl && typeof repl.innerHTML != "undefined") repl.innerHTML = shtml; } } var s1='<img src="images/large/scan0001_c.jpg">' var s2='<img src="images/large/scan0002_c.jpg">' var s3='<img src="images/large/scan0003_c.jpg">' var s4='<img src="images/large/scan0004_c.jpg">' var s5='<img src="images/large/scan0005_c.jpg">' var s6='<img src="images/large/scan0006_c.jpg">' |
![]() |
| Thread Tools | |
| Display Modes | |
| |