Digital Point Forums
San Diego Models

Go Back   Digital Point Forums > Design & Development > Programming > JavaScript
Google Analytics
Log In to view
your analytics

Reply
 
Thread Tools
  #1  
Old Jun 15th 2005, 2:38 pm
ewhite105 ewhite105 is offline
Peon
 
Join Date: Jun 2005
Posts: 2
ewhite105 is on a distinguished road
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>
Reply With Quote
  #2  
Old Aug 1st 2005, 11:27 pm
senexom's Avatar
senexom senexom is offline
Peon
 
Join Date: Aug 2005
Posts: 28
senexom is on a distinguished road
just call your javascript function after your image
...
<img src="myImage" name="imgSwap" />
<script language="JavaScript"> swapImage(); </script>
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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


All times are GMT -8. The time now is 6:43 pm.