![]() |
|
|
|
||||||||||
![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
script for swapping image without onload or <body> tag?
Is there a script out there (which would need to be placed below the <body> tag) that would swap an image without using an onload event or <body> tag?
notes: We have a site where there is a "you are here" image that is swapped depending on the page the user is on. The site is .net framework and the first level of html, that fills in the maincontent area of every page, has a dynamic <body id=""></body> comming from data. Then there are a set of styles attached to show the selected states of btn's and this image swap. When the user goes deeper then that first level of html the image switches back to the default image because the <body id=""></body> no longer applies to those deeper pages. Instead of including this modification into the .net framework, we wanted to have that image swap happen spontainiously with a javascript in the html code which has to be a script inside <body></body> |
|
#2
|
||||
|
||||
|
just call your javascript function after your image
... <img src="myImage" name="imgSwap" /> <script language="JavaScript"> swapImage(); </script> |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Looking for good Image Hosting Script | payoutwindow | Scripts | 59 | Apr 9th 2008 4:19 am |
| Text over image script | nevetS | All Other Tools | 3 | Oct 10th 2006 1:51 am |
| Looking for image upload script | SEbasic | PHP | 3 | Apr 30th 2005 1:21 am |
| Looking for an Image Gallery script | sji2671 | Programming | 6 | Apr 5th 2005 1:41 pm |
| <hr> tag and a right-aligned image | Gray | CSS | 4 | Nov 2nd 2004 7:36 am |