Results 1 to 5 of 5

Thread: Where to put script?

  1. #1
    Join Date
    Jul 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Where to put script?

    Hello, everyone! I'm giving some CSS a try and have hit a snag.

    I have just put DD's horizontal tab menu (regular ddcolourtabs) on my site (lovely! v. pleased!) and I'd like to try the matching drop down tab menu but i can't figure out where to put things.

    I understand where the html goes but I have two scripts - the javascript that comes with the download (in this case the dropdowntabs script) which I assume goes in the 'head' portion of my html and the short one on the 'customization' portion of the instructions which is preceeded by: " Script to call following the HTML for both of the above to initialize a Tab Menu instance:"

    SO sorry for the dumb n00b questions but I've no idea where to stick these two scripts!

    Thank you guys in advance for your help!

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    To give the best answer, please link to your page and the script(s) in question.

    There are three likely places to put code:

    1. In your html. Something like the region to display a script would go there.

    2. In the head section. The setup, info, settings, and other code goes here, for both CSS and Javascript.

    3. In an external .css or .js file. Same as in the head section, but simply in an external file. (In fact, these are interchangable as you want.)
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I know this is off topic, so read the response before it for some relevant information, but I just had to say that I love your username!
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Jul 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    John, thank you!

    Quote Originally Posted by djr33 View Post
    To give the best answer, please link to your page and the script(s) in question.
    Daniel, I would have linked to my page but it's not up - the dropdown menu isn't working. Here is the one I'm attempting to install: http://www.dynamicdrive.com/dynamici...roptabmenu.htm


    There are three likely places to put code:

    1. In your html. Something like the region to display a script would go there.

    2. In the head section. The setup, info, settings, and other code goes here, for both CSS and Javascript.

    3. In an external .css or .js file. Same as in the head section, but simply in an external file. (In fact, these are interchangable as you want.)

    Yes, I'm aware of these. 1) The html bit is in the divs in the body of my html.

    2) I have tried putting the two javacode scripts in the head - it doesn't work.

    3) I have tried external files - also doesn't work.

    I have tried every configuration that my poor wee brain can think of and I can't shake the feeling that it's something small and stupidly simple that I have missed.

    Thank you blokes for your help, though.

    *wanders off to bang head on floor*

  5. #5
    Join Date
    Jul 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    eeeEEEeee! happy dance!

    I got it to work in testing! It never occured to me to read that line of instruction literally:

    "Script to call following the HTML for both of the above to initialize a Tab Menu instance:"

    Duh-huh!

    OK, let me go see if I can get it to work on the site!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •