![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I'm trying to load a matching image when a link is clicked. The following test page works OK (the pictures load when their link is clicked) in IE6 but it does not work in Mozilla 1.5. ------------------ a href="javascript:ShowPic1()">Picture #1</a><br ------------------ TIA for any assistance... |
#2
| |||
| |||
|
|
"<a href="javascript:..." is not a good move, as it means that anyone without Javascript can't see the picture at all. Better to have a href="images/test_1.gif" and use onclick to place it where you want on the page. |
#3
| |||
| |||
|
|
"Stephen Poley" <sbpoley (AT) xs4all (DOT) nl> wrote in message news:4stosv4r9k27li3hddirclt8rpvifeno97 (AT) 4ax (DOT) com... "<a href="javascript:..." is not a good move, as it means that anyone without Javascript can't see the picture at all. Better to have a href="images/test_1.gif" and use onclick to place it where you want on the page. The actual pages I'm putting together will probably need to require Javascript. In the 'non-test' pages a variable number of image files are selected and uploaded by a separate backend process on a regular basis and a list of files and their description is put into an array in a separate JS file. Without having Javascript, the link itself wouldn't be there in the first place since it's generated in the onload() processing. If you have any alternative suggestions on how to do this (aside from running things server side in ASP, JSP, or PHP which I can't do in this case) I'd like to hear about them. |
#4
| |||
| |||
|
|
Well, I'm not 100% sure what your situation is. But if you've got things being changed dynamically by a back-end process, it does sound as if PHP / JSP / ASP would be the way to go. Or Perl. If you are running such processes, why is it not possible to use one of those four? |
![]() |
| Thread Tools | |
| Display Modes | |
| |