dcumpian Posted December 21, 2004 Posted December 21, 2004 While I do use Dreamweaver, this isn't specifically a Dreamweaver issue (I don't think). I'm redoing my website and the menu navigation buttons use javascript to handle OnMouseOver() events. On IE SP2, these events are blocked by default. It works fine once the block is removed and it works as expected in Firefox. How are other developers dealiong with this? I tried using straight CSS actions to do this, but IE couldn't handle it, so I'm using a mix of CSS for layout and colors and javascript for event coding. Thanks, Dan Quote
LisaJill Posted December 21, 2004 Posted December 21, 2004 Many professional developers will tell you not to use javascript for navigation (or flash) because people may have these dissabled (the last number I heard thrown around was 15% of people have js disabled) and so it's a bad idea to use for necessary navigation anyway. As far as SP2 goes, I didn't know it disabled onmouseovers. I don't run Windows though and I'm not a professional developer, so I can't speak to that because I don't care about causing problems for IE users on my personal site. If you can't find an answer to this here, btw, you might try peering around devshed - that's where I go for these types of questions and they are great, but can be a bit uh... direct. Quote
dcumpian Posted December 21, 2004 Author Posted December 21, 2004 Many professional developers will tell you not to use javascript for navigation (or flash) because people may have these dissabled (the last number I heard thrown around was 15% of people have js disabled) and so it's a bad idea to use for necessary navigation anyway. The links are not java, just the mouseovers, so the site still works, it's just annoying to see the "blocked script" message. Regards, Dan Quote
TCH-Bruce Posted December 21, 2004 Posted December 21, 2004 I agree that it's annoying but it is a Javascript. There is no way for browser to tell the difference that you are using it for rollovers or something malicious. The browser is doing it's job and I am being kept informed of what's happening. Not a bad thing IMHO. I'd investigate using CSS rollovers without using Javascript. Quote
dcumpian Posted December 21, 2004 Author Posted December 21, 2004 I'd investigate using CSS rollovers without using Javascript. Tried that originally, but IE wouldn't perform the rollovers. Firefox did the CSS rollovers, but IE wouldn't budge. That's the only reason I switched to java. Is there any other way to do it? Regards, Dan Quote
TCH-Bruce Posted December 21, 2004 Posted December 21, 2004 I just did a Google search on the phrase "CSS Rollovers" and it came back with numerous pages with examples. Some with images and some without. I use CSS text rollovers on my site and they work fine in IE and FF. Quote
dcumpian Posted December 21, 2004 Author Posted December 21, 2004 I just did a Google search on the phrase "CSS Rollovers" and it came back with numerous pages with examples. Some with images and some without. I use CSS text rollovers on my site and they work fine in IE and FF. I just searched DevShed (thanks Lisa) and found some CSS rollover code that I will try. I think the CSS code I was using may have been the problem. Can anyone suggest a way to determine why something works in IE but not Firefox/Mozilla or vice versa? I would love to be able to validate the code and quickly be able to find out why (for example) something centers correctly in Firefox but not IE (or the reverse). Regards (and thanks for the suggestion about persisting with the CSS method)... Dan Quote
LisaJill Posted December 21, 2004 Posted December 21, 2004 I've been using CSS for awhile now and I can't do it the guys at the CSS Forums (csscreator.com I think it is) probably can, but they're geniuses with this stuff. Quote
TCH-Don Posted December 21, 2004 Posted December 21, 2004 (edited) Eric Meyers is the best source for ccs that I have found. He has many css menus where you can get ideas form. Be sure to look at pure CSS menus Edited December 21, 2004 by TCH-Don Quote
dcumpian Posted December 21, 2004 Author Posted December 21, 2004 I've been using CSS for awhile now and I can't do it the guys at the CSS Forums (csscreator.com I think it is) probably can, but they're geniuses with this stuff. <{POST_SNAPBACK}> OK, these guys make my head hurt... BUT, I can see there's a lot there to learn. Wish I'd found this site this past weekend while I spent 16+ hours doing this: Regards, Dan Quote
dcumpian Posted December 21, 2004 Author Posted December 21, 2004 Eric Meyers is the best source for ccs that I have found. He has many css menus where you can get ideas form. Be sure to look at pure CSS menus <{POST_SNAPBACK}> Also very cool site... Thanks everyone for the pointers. Dan Quote
LisaJill Posted December 21, 2004 Posted December 21, 2004 devshed is one forum I use for scripting and hosting things. css creator is what I use for css. I love TCH but I prefer specialized forums for help Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.