Mr Andrewson Posted April 8, 2007 Share Posted April 8, 2007 Can anyone sort me out here? I am trying to think of a HTML script that will make an image link (with no border) and when you hover over it, it changes colour. Like under the title up there ^. Quote Link to comment Share on other sites More sharing options...
VaKo Posted April 8, 2007 Share Posted April 8, 2007 http://alistapart.com/articles/sprites http://alistapart.com/d/sprites/ala-image3.html You basically use css and a background image that changes its position. Quote Link to comment Share on other sites More sharing options...
Mr Andrewson Posted April 8, 2007 Author Share Posted April 8, 2007 Are there any pure HTML ones? Quote Link to comment Share on other sites More sharing options...
Sparda Posted April 8, 2007 Share Posted April 8, 2007 Some one write me a calculator in html! Quote Link to comment Share on other sites More sharing options...
Mr Andrewson Posted April 8, 2007 Author Share Posted April 8, 2007 Got it, i just did it! Quote Link to comment Share on other sites More sharing options...
cooper Posted April 9, 2007 Share Posted April 9, 2007 This is the point where you explain to the rest of us what you did in order to get it working the way you wanted it to. That way those who didn't know about it will have learned something, and those who are smarter than you can tell you how to do the same thing better/easier/faster/cleaner/whatever. Quote Link to comment Share on other sites More sharing options...
Mr Andrewson Posted April 9, 2007 Author Share Posted April 9, 2007 Ok, i looked at the source of this site, found the links and saw the html i needed, here is the bit i used for my site: <a href="http://hak5fansite.piczo.com/" onMouseover="home.src='http://i85.photobucket.com/albums/k80/******/homehover.png'" onMouseout="home.src='http://i85.photobucket.com/albums/k80/******/home.png'"><img src="http://i85.photobucket.com/albums/k80/******/home.png" border="0" name="home"></a> The site is for the competition, feel free to have a look, it's not finished yet though ;) Quote Link to comment Share on other sites More sharing options...
Shaun Posted April 9, 2007 Share Posted April 9, 2007 That's using javascript. Don't use it, use CSS. Especially since you aren't using some code to preload the images. Quote Link to comment Share on other sites More sharing options...
Mr Andrewson Posted April 9, 2007 Author Share Posted April 9, 2007 Dude, i don't see any javascript in there :/ and why don't you tell Darren not to use it aswell seen as he uses it for this site. Quote Link to comment Share on other sites More sharing options...
Shaun Posted April 9, 2007 Share Posted April 9, 2007 Well, you might not see it, but there it is. Edit: Also what's the point in obsuring the AndyMosh part of the URL when people who go to your site can still see it? Quote Link to comment Share on other sites More sharing options...
Mr Andrewson Posted April 9, 2007 Author Share Posted April 9, 2007 Damn, bah humbug! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.