Go Back   HTMLCenter Web Development Forums > Web Design and Development > Programming and Scripting

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 08-09-2007, 08:03 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,111
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
Arrow Help with Dynamic Drive tutorial; how to make bg transparent

Here is the script: http://www.dynamicdrive.com/dynamici...menu/index.htm

I found that and thought it was better than the rest of their multiple-level menus. My only problem is that I need to figure out how to make the base layer's colour transparent.

In the exmplmenu_var.js file, this is the line of code for the base colour: var LowBgColor='white'; I have tried 'transparent' and '#F00,' but neither worked. Does anyone else have any suggestions or recommendations? I need to figure this one out because the bg img on the page itself has a linear gradient, and a solid colour for the LowBgColor looks bad.

Thanks for any help!
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Reply With Quote

  #2 (permalink)  
Old 08-13-2007, 05:33 AM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,397
Forget about Dynamic Drive. Check out son of suckerfish instead.
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote
  #3 (permalink)  
Old 08-13-2007, 11:22 AM
Deadeye's Avatar
Moderator
 
Join Date: Aug 2005
Location: San Diego, CA
Posts: 267
Send a message via MSN to Deadeye
replace the background of the menu with a gif that is transparent?

I have no idea. I'd have to look at the script. Let me know if curtiss' script doesn't work

Wesley
__________________
Don't forget to rate me A+++++++++++++++++!!!!!111one for the service you have received.
Reply With Quote
  #4 (permalink)  
Old 08-13-2007, 06:26 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,111
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
That looks perfect! Now I just need to go and figure out the code, and it should work. Thanks, Curtiss!
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Reply With Quote
  #5 (permalink)  
Old 08-14-2007, 09:03 AM
Deadeye's Avatar
Moderator
 
Join Date: Aug 2005
Location: San Diego, CA
Posts: 267
Send a message via MSN to Deadeye
oh fine..... use his idea..... see if I care *hmrph*
__________________
Don't forget to rate me A+++++++++++++++++!!!!!111one for the service you have received.
Reply With Quote
  #6 (permalink)  
Old 08-14-2007, 05:43 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,111
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
Quote:
Originally Posted by Deadeye View Post
oh fine..... use his idea..... see if I care *hmrph*
What was that you said about being so busy a few days ago? Zoom 1 image in, 3 out.
But if you have any other ideas, post'em anyway.
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Reply With Quote
  #7 (permalink)  
Old 08-15-2007, 08:46 AM
Deadeye's Avatar
Moderator
 
Join Date: Aug 2005
Location: San Diego, CA
Posts: 267
Send a message via MSN to Deadeye
lol naaa its fine, just messing around, maybe a [/sarcastic] tag was in order
__________________
Don't forget to rate me A+++++++++++++++++!!!!!111one for the service you have received.
Reply With Quote
  #8 (permalink)  
Old 08-15-2007, 06:10 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,111
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
Thumbs up

Deadeye... guess what! I am having some complications with Curtiss's suggestion. I am figuring it out bit by bit--this whole em thing is throwing me off--so feel free to toss in any other suggestions.
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Reply With Quote
  #9 (permalink)  
Old 08-15-2007, 07:30 PM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,397
"em" is a decimal representation of font-size. 1em is equal to the width or height of a single font character. Therefore, .5em would be half the size, 2em would be twice the size, etc.

You can substitute pixel sizes for the em if you want. They just used em units because that's considered the new "best" method.
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote
  #10 (permalink)  
Old 08-16-2007, 08:54 AM
Deadeye's Avatar
Moderator
 
Join Date: Aug 2005
Location: San Diego, CA
Posts: 267
Send a message via MSN to Deadeye
oh geez, I've never even heard of em
__________________
Don't forget to rate me A+++++++++++++++++!!!!!111one for the service you have received.
Reply With Quote
  #11 (permalink)  
Old 08-16-2007, 08:05 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,111
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
Exclamation

Quote:
Originally Posted by curtiss View Post
You can substitute pixel sizes for the em if you want.
Yeah, I tried that, but then everything goes berzerk for some reason. I assume it has something to do with the JS.

Then the major problem I am having is that the file I am using it for is the nav panel, so it is placed as an include. Unfortunately the only way I can accomplish the include is to use FP's crummy webbot method. If I look at the file on its own, things appear fine, but when it is included, the whole thing goes nuts: all of my original CSS for ul gets applied--which is different from the ul I used in the nav section--and the items are all laid out, so there is no mouseover ability.

Deadeye or anyone else for that matter, if you have any suggestions, feel free to suggest them!

And yes, I have to use FP because it is at work, which is for the U.S. government, and everything is on the .mil server.
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Reply With Quote
  #12 (permalink)  
Old 08-16-2007, 08:24 PM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,397
Quote:
Originally Posted by Leprakawn View Post
If I look at the file on its own, things appear fine, but when it is included, the whole thing goes nuts: all of my original CSS for ul gets applied--which is different from the ul I used in the nav section--and the items are all laid out, so there is no mouseover ability.
Have you made sure to cancel out all of the CSS definitions that are defined through the original UL declaration?

Is the CSS for the dropdown menu placed after the CSS for the rest of the page? If not, do so. If that's not possible, try adding the "!important" declaration after each style declaration in your dropdown CSS.

Quote:
And yes, I have to use FP because it is at work, which is for the U.S. government, and everything is on the .mil server.
I understand perfectly. That's essentially why I use Dreamweaver. Good luck with it.
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote
  #13 (permalink)  
Old 08-17-2007, 01:58 AM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,111
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
Well, it doesn't really make sense to me because I have my standard ul styles, and then I changed the "new" ul style to ul-du; however, all of the items I wrote as ul-du appear as ul. (That's when it is viewed as an include, but when I view the page on its own, it looks the way it is supposed to.)

*sudden idea* Maybe I need to remove the hyphen.

Geez Curtiss, thanks for making me feel better! And yes, I am trying to get them to understand that DW is the way to go.
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Reply With Quote
  #14 (permalink)  
Old 08-22-2007, 02:03 AM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,111
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
I have no idea how I found this page, but this is the best solution. Also, check out his other CSS creations!
http://www.cssplay.co.uk/menus/example_flyout.html
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Form Validation Tutorial curtiss Off-Topic 5 09-04-2007 06:25 PM
Complete newbie to Dynamic URLs sirtech Programming and Scripting 3 06-19-2006 07:43 AM
With a transparent background kult Programming and Scripting 1 01-06-2006 10:14 AM


All times are GMT -5. The time now is 02:55 AM.

 
KickApps
Clicky Web Analytics


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter