CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 30th, 2002, 07:53 AM
AndyMan1 AndyMan1 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Location! Location!
Posts: 2 AndyMan1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to AndyMan1 Send a message via AIM to AndyMan1
Image Swapping through CSS?

I've seen it done before but im not sure how. Is there a CSS alternative to the javascript mouseover?

Reply With Quote
  #2  
Old August 30th, 2002, 09:04 AM
degsy degsy is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2001
Posts: 1,882 degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 21 h 19 m 30 sec
Reputation Power: 13
Where have you see it done?

You need the Javascript code to make the mouseover function.
You may have seen a page that incorporates CSS into the design.

Reply With Quote
  #3  
Old August 30th, 2002, 04:34 PM
adios adios is offline
Senior Citizen
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2001
Location: leftcoast
Posts: 2,019 adios User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
Yup.

<html>
<head>
<title>untitled</title>
<script type="text/javascript" language="javascript">

//preload - for quick display
var x = new Image();
x.src = 'http://thumb-2.image.altavista.com/image/238889524';

</script>
<style type="text/css">

.roll {
width: 131px;
height: 131px;
border: 8px salmon ridge;
cursor: default;
background: url(http://thumb-1.image.altavista.com/image/16411627);
}

a:hover.roll {
background: url(http://thumb-2.image.altavista.com/image/238889524);
}

</style>
</head>
<body>
<a class="roll" href="#"
onmouseover="status=defaultStatus;return true;"
onclick="return false;"></a>
</body>
</html>

Last edited by adios : August 30th, 2002 at 06:28 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Image Swapping through CSS?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway