Results 1 to 4 of 4

Thread: setting id as a variable

  1. #1
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default setting id as a variable

    after seeing your super duper menus,

    http://www.dynamicdrive.com/style/cs...n-bricks-menu/

    in particular the one linked above, I can't figure out how to set the id="current" dynamically for master pages?

    please can someone help?

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    You'll need to use a scripting language like PHP to do this. Use if's.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #3
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have ZERO experiece in PHP and generally want to stay away from it. can i do this in the code-behind with c# or in a javascript?

    Thanks,

    any examples welcome!

  4. #4
    Join Date
    Oct 2007
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    <link rel="stylesheet"
    href="myPage.asp?themetype=<%= current %>"
    type="text/css">

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
  •