Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > css-only rollover background image swap problem -- help?

Reply
Thread Tools

css-only rollover background image swap problem -- help?

 
 
Miselaineous
Guest
Posts: n/a
 
      04-17-2005
I wanted to do something that looked interesting, for a spoken-word
artist's site.... I wanted the navigation background image appear to
change with a rollover, and I wanted to do it with CSS.

The following works as intended in Firefox, but breaks in IE and Opera
-- so it's obviously not going to be a valid effect if I can't coax
the code to accept the other browsers.

http://ivanecoyote.com/test.php

When the rollover image in the *span* tag is not a background, it
works in all the browsers I've been able to test. This site of mine
works fine with a very similar technique:
http://sactaiko.org

Anyone with an idea why it's breaking?

Thanks for any input...

-Elaine
e l a i n e a t d y k e t e c h d o t c o m
--
++++++++++++++++++++++++++++++++++++++++++++++++++ +++
mer
 
Reply With Quote
 
 
 
 
Jonathan N. Little
Guest
Posts: n/a
 
      04-17-2005
Miselaineous wrote:
> I wanted to do something that looked interesting, for a spoken-word
> artist's site.... I wanted the navigation background image appear to
> change with a rollover, and I wanted to do it with CSS.
>
> The following works as intended in Firefox, but breaks in IE and Opera
> -- so it's obviously not going to be a valid effect if I can't coax
> the code to accept the other browsers.
>
> http://ivanecoyote.com/test.php
>
> When the rollover image in the *span* tag is not a background, it
> works in all the browsers I've been able to test. This site of mine
> works fine with a very similar technique:
> http://sactaiko.org
>
> Anyone with an idea why it's breaking?
>
> Thanks for any input...
>
> -Elaine
> e l a i n e a t d y k e t e c h d o t c o m
> --
> ++++++++++++++++++++++++++++++++++++++++++++++++++ +++
> mer


This imported stylesheet for http://ivanecoyote.com/test.php has a
number of 'odd' elements.

HTML comments <!-- ... --> are not allowed in a stylesheet but should be
/* ... */, I believe they are allow in HTML documents between the
<STYLE></STYLE> to hide the code from very old browsers

You have HTML <STYLE></STYLE> in your external stylesheet also a no-no

and not sure what this stuff is?

<!--[if lt IE 6]>
<style type="text/css" media="screen">>
/* HR styles need for IE 5/Win and under. */
#middle { position: relative; }
</style>
<![endif]-->

these special MS conditional comments are for in your HTML document not
your stylesheet, right?


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
 
 
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with image and text swap with rollover effect twst3d Javascript 0 07-11-2007 01:57 AM
rollover image (but image is a php document) Dan Javascript 3 05-05-2007 07:46 AM
What swap is called when using std::swap? Niels Dekker (no reply address) C++ 4 07-20-2006 08:44 PM
Intermittent image display problem within 179 image rollover Mark Szlazak Javascript 3 04-25-2006 06:32 PM
Mouse-over an image -> play video instead of swap image? Phillip Roncoroni HTML 6 04-06-2004 06:57 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57