Reply
Javascript and Spry Same thing? Or easier?
Old 01-26-2008, 12:17 AM Javascript and Spry Same thing? Or easier?
colochris's Avatar
Ultra Talker

Posts: 357
Hello,

I am not the best coder at all. With Dreamweaver cs3, I can just add spry framework with a click of a button.

But my problem is I want to be able to have nice drop down menus without active x errors.

I read that Sprys give the error when veiwing on a local pc, but not as bad live. I have no idea how to do Javascript and so I am wondering if anyone would have an idea if one is easier than another that works well with Internet Explorer?

Or maybe a script that I can use? I see many sites that sell scripts or drop down makers, yet I am not sure if they are worth it or not.

Andy idea would be greatly appreciated.

Colochris
__________________
http://www.bowlingboards.com
colochris is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 01-28-2008, 11:17 PM Re: Javascript and Spry Same thing? Or easier?
Extreme Talker

Posts: 214
Here you go:

in your css file
Code:
.mL {display:none;}
in a .js file
Code:
function toggleMenu(objID) {
if (!document.getElementById) return;
var ob = document.getElementById(objID).style;
ob.display = (ob.display == 'block')?'none': 'block';
}
HTML Code:
<html>
<head>
<script src="clmenu.js" type="text/javascript"></script>
<link href="clmenu.css" type="text/css" rel="stylesheet" /> 
</head>
<body>
<a class="pointer" onclick="toggleMenu('menu1')">+ Text to be seen by user</a>
<div id="menu1" class="mL">
Stuff inside
<div>
</body>
</html>
This should work.
Truly is offline
Reply With Quote
View Public Profile
 
Old 01-28-2008, 11:38 PM Re: Javascript and Spry Same thing? Or easier?
colochris's Avatar
Ultra Talker

Posts: 357
thank you so much!!!
__________________
http://www.bowlingboards.com
colochris is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Javascript and Spry Same thing? Or easier?
 

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12983 seconds with 13 queries