473,401 Members | 2,127 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,401 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 2980
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.