473,238 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,238 software developers and data experts.

Using css for rotating content

Hi folks.

I was wondering if anyone is aware of any pure css methods of
displaying content based on what the user clicks on or mouses over. I
am considering creating a menu for my restaurant project that will
display menus for breakfast, lunch and dinner. I was thinking of
displaying the breakfast menu only if the user clicked on or
mouseovered a breakfast image, and displaying the lunch menu if lunch
image was clicked on or mouse overed. I came across off-left but soon
discovered that it only supported by IE as far back as version 6. I
have to use something that will work with IE5.01.

--
Thanks,
Terry

Sep 4 '07 #1
5 2974
On Tue, 04 Sep 2007 17:03:11 +0200, Terry <te**********@rogers.comwrote:
I was wondering if anyone is aware of any pure css methods of
displaying content based on what the user clicks on or mouses over. I
am considering creating a menu for my restaurant project that will
display menus for breakfast, lunch and dinner. I was thinking of
displaying the breakfast menu only if the user clicked on or
mouseovered a breakfast image, and displaying the lunch menu if lunch
image was clicked on or mouse overed. I came across off-left but soon
discovered that it only supported by IE as far back as version 6. I
have to use something that will work with IE5.01.
No, there isn't a pure css solution for this.
--
Rik Wasmus
Sep 4 '07 #2
On 2007-09-04, Rik Wasmus <lu************@hotmail.comwrote:
On Tue, 04 Sep 2007 17:03:11 +0200, Terry <te**********@rogers.comwrote:
>I was wondering if anyone is aware of any pure css methods of
displaying content based on what the user clicks on or mouses over. I
am considering creating a menu for my restaurant project that will
display menus for breakfast, lunch and dinner. I was thinking of
displaying the breakfast menu only if the user clicked on or
mouseovered a breakfast image, and displaying the lunch menu if lunch
image was clicked on or mouse overed. I came across off-left but soon
discovered that it only supported by IE as far back as version 6. I
have to use something that will work with IE5.01.

No, there isn't a pure css solution for this.
You can do a lot with :hover selectors making different parts of the
page visible or invisible.

But who knows what, if anything, works in IE5.01. I've never heard of
"off-left".
Sep 4 '07 #3
On Tue, 04 Sep 2007 18:04:31 +0200, Ben C <sp******@spam.eggswrote:
On 2007-09-04, Rik Wasmus <lu************@hotmail.comwrote:
>On Tue, 04 Sep 2007 17:03:11 +0200, Terry <te**********@rogers.com>
wrote:
>>I was wondering if anyone is aware of any pure css methods of
displaying content based on what the user clicks on or mouses over. I
am considering creating a menu for my restaurant project that will
display menus for breakfast, lunch and dinner. I was thinking of
displaying the breakfast menu only if the user clicked on or
mouseovered a breakfast image, and displaying the lunch menu if lunch
image was clicked on or mouse overed. I came across off-left but soon
discovered that it only supported by IE as far back as version 6. I
have to use something that will work with IE5.01.

No, there isn't a pure css solution for this.

You can do a lot with :hover selectors making different parts of the
page visible or invisible.
And keep it visible on click?

But who knows what, if anything, works in IE5.01.
It doesn't. Furthermore, IE < 7 only supports :hover on <a>'s.
I've never heard of
"off-left".
Neither have I, but without some scripting in either hta or javascript
there's no way it could work.
--
Rik Wasmus
Sep 4 '07 #4
Ben C wrote:
>On Tue, 04 Sep 2007 17:03:11 +0200, Terry <te**********@rogers.comwrote:
>>I came across off-left but soon
discovered that it only supported by IE as far back as version 6.

I've never heard of "off-left".
It was developed as an image replacement method back in the early days
of FIR. Basically, you absolutely position something left:-99999px so it
isn't seen on screen, but is still read by search engines.

Like most IR methods, it has some serious accessibility issues so I'd
avoid it altogether.

--
Berg
Sep 4 '07 #5
On 2007-09-04, Bergamot <be******@visi.comwrote:
Ben C wrote:
>>On Tue, 04 Sep 2007 17:03:11 +0200, Terry <te**********@rogers.comwrote:
I came across off-left but soon
discovered that it only supported by IE as far back as version 6.

I've never heard of "off-left".

It was developed as an image replacement method back in the early days
of FIR. Basically, you absolutely position something left:-99999px so it
isn't seen on screen, but is still read by search engines.
Ah so that's what it means, I have seen that trick, yes. It's quite
annoying for implementations that use fixed point numbers to represent
positions.

A huge negative text-indent is often used as well.
Sep 4 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sandy Bremmer | last post by:
I have seen many Javascripts that rotate images with each load or refresh of the page but so far all I've found require hard coding the image filename into the script. Does anyone know of a script...
1
by: Grunt | last post by:
Hi, I have been trying to put together a rotating banner. the code works but I am having a problem with the caching of the banner images. no matter what I try the page is constantly reloading the...
31
by: Royal Denning | last post by:
I am designing a table with 2 columns and 20 rows. I want to insert small images (each with a link) and a text title in each cell of the table. On refresh of the page, I would like to have the...
4
by: Roozbeh GHolizadeh | last post by:
Hi there... i think it is a very common problem but i dont know why i didnt find anything good for me on internet... i want to simply rotate an array with 90,180,270 degrees.... here is how...
2
by: mistral | last post by:
I want place custom text rotating around analogue clock. Here is javascript that is clise to my task: http://javascript.internet.com/time-date/mousetrailclock.html But it have a few...
4
by: Chris Shenton | last post by:
I set this up 3 days ago and have not seen any of the logs I've created this way being rotated. I expected them to rotate every midnight. I'm calling the code that uses this logger many times,...
1
by: AR123 | last post by:
Hi I want to set up a rotating banner. Not sure how to incorporate my rotating banner code into the code below. I want the rotating banner to be the main feature image? This is set up in...
4
by: pompair | last post by:
I have a table DEFINITION with this content: def_id game_id generaldef_id definition ======================================== 1 1 1 firstname 2 ...
13
by: =?Utf-8?B?Um9nZXIgTWFydGlu?= | last post by:
This is a follow-up to my post "Silverlight video doesn't work when file is streamed from handler in ASP.net" at...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.