Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



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: 379
Trades: 0
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
__________________

Please login or register to view this content. Registration is FREE
colochris is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-28-2008, 11:17 PM Re: Javascript and Spry Same thing? Or easier?
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
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: 379
Trades: 0
thank you so much!!!
__________________

Please login or register to view this content. Registration is FREE
colochris is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Javascript and Spry Same thing? Or easier?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB 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.11317 seconds with 12 queries