Ok, I thought it was something like that. How are the larger images defined for the one that you are using now? Any script that uses an array can be made to use another method. With this script, the call in the markup is like:
HTML Code:
<a href="#" onMouseover="modifyimage('dynloadarea', 0)"><img src="some_tmb.jpg" border="0"></a>
This is the essential thing that it is doing:
Code:
modifyimage('dynloadarea', 0)
It is changing the dynloadarea's (an element with the id of 'dynloadarea') inner HTML to insert an image tag there. The 0 tells it which array entry to look in to get the source for the image tag. With minor modification, it could look to the link's href value to get that, or to the name of the thumbnail image. If the latter, the thumbnail name could be transformed to produce the larger image's filename, if they were named in a similar fashion. For example - some_tmb.jpg - could become - some_lrg.jpg.
To be more specific, I would want to know how the script that you currently like the method it uses for finding the larger image's filename does it. I would think that wherever the larger image's filename is gotten from in one script could be adapted to another. To adapt it, I just need to know where that filename is coming from.
Bookmarks