Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 5th, 2005, 04:20 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hover/Text Decoration Weirdness

Hi there,

Im relatively new to CSS, so these questions may have really simple answers.

1. I have written a javascript to unhide a div and float it into view when the user clicks a text link, however when I set the active link font weight attribute to bold it stops the javascript from firing the first time the link is clicked, yet once it has gone bold from the first click and you click again, the javascript fires and lo and behold my menu floats into view!

Edited 05/08/05 15:37 GMT
- Further testing has shown that when you set the font weight attribute to bold, if the font has to flow to the next line to fit in order to fully display, any javascript functions called by the link will not fire until the second click-


2. Not sure if this is a javascript or CSS issue, but I have written a script that renders an animated menu that slides into view and then unhides and slides submenus into view. This menu relies on CSS for its look and feel. The script uses timers to increment and decrement sizes and shapes of the various submenus. What I have noticed though is if you run your mouse over the links that fire the submenus into view too quickly, some of them will get 'stuck' and go all strobey and flickery. Bearing in mind the bad behaviour of CSS as mentioned above, is this something to do with CSS or Javascript, or could it be an IE bug? I don't think its my timers conflicting as each timer is cleared after each use. Any suggestions would be helpful and most appreciated.

Thanks all!
__________________
\'sync\' <cr>
The name specified is not recognized as an internal or external command, operable program or batch file.
 
Old August 8th, 2005, 06:17 AM
Authorized User
 
Join Date: Oct 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

Without getting into your script too much, take a look at this demo:

http://concepts.waetech.com/expando_nav/

Sounds like this is what you are trying to achieve

HTH

David
 
Old August 8th, 2005, 09:11 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi foddie,

I've already completed the script and it is working, so I don't need any help that way. I've just noticed a bug in the CSS or Javascript, and am trying to figure out which it is.

cheers
interrupt






Similar Threads
Thread Thread Starter Forum Replies Last Post
Array weirdness? oldmainframehack Beginning PHP 1 September 5th, 2007 03:24 PM
Selecting Text Weirdness Aaron Edwards ASP.NET 2.0 Basics 4 January 16th, 2006 03:06 PM
Problem with text-decoration in cascaded <li> setesteve CSS Cascading Style Sheets 6 January 7th, 2005 10:53 AM
DateDiff Weirdness SerranoG Access VBA 1 July 16th, 2004 12:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.