Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: not2easy
<a href="linkedpage.html"><img src="images/picture.jpg"></a>
That will cause the rollover the image to be a live link, that when clicked, goes to the lianked page.
If you're talking about something other than that, I have no idea.
..... in the body of the page where you want the ad to go, instead of the IMG HTML code, then create a new file, myad.php, and put the HTML code in there.
When you need to change the ad, you just change the code in the myad.php file and job done.
.... in the body of the page where the ad is to go, then create a new file on the server called myad.js and put this in it:-
document.write('<a href=""><img src="image.jpg></a>');
All above code off the top of my head and may need cleaning up and syntax checked etc.
If you want to go back to the first graphic, archive the second calling it 1_2.png and change 1_1.png back to 1.png ad finitum.
an include file in php seems like a decent option..
find and replace in dreamweaver also works..
Flash would do it..
seems to me CSS should be able to cope with that also but never tried it..
Just top of my head stuff, I'd probibly go for an include..
This is for two main reasons (from my point of view),
a> Security. When you give the image format a chance to execute something like code or a hyperlink you are essentially creating a gap from which exploits may arise. Do you remember the WMF exploit recently?
b> Relevance. An image file is that *just an image* if you want to move to a format which allows code to be executed in a rich media environment. Try Flash.