SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Member Mara's Avatar
    Join Date
    Mar 2001
    Location
    Seattle
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb list-style img as a href???

    Hello All,
    I am VERY new at javaScript and have been challenged through a class assignment to create a list that expands and collapses (plenty of parents, children and siblings to keep us busy !).
    I am wondering if there is a way to set the list-style img attribute in css to actually be a href to the external .js ??? Or can I set the img attr to a href through the dom using "append"?
    If not, does anyone have some good ideas on how I can acheive this so that the list stays expanded until only the FIRST item is clicked on.
    Thanks for your help, my brain is spinning (actually I think it is "looping")
    Mara

  2. #2
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use this

    http://msdn.microsoft.com/library/de...nce/htcref.asp

    htc are used to link behaviors, although i very much doubt your teacher would expect you to know or to use this method.

  3. #3
    SitePoint Member Mara's Avatar
    Join Date
    Mar 2001
    Location
    Seattle
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Andrew,
    Will this work in NN6 or is it just an IE "thing"?
    The material I've read so far is a llittle confusing...Do you know enough about it to explain it to me in plain English?
    Mara

  4. #4
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sry, not now as i'm kinder drunk still lol, and i'm moving to england today, so i wont have the internet for a while

  5. #5
    What? Maelstrom's Avatar
    Join Date
    Oct 2001
    Location
    Whistler BC originally from Guelph Ontario
    Posts
    2,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry to hear that Andrew. Happy 1000 posts too
    Maelstrom Personal - Apparition Visions
    Development - PhP || Mysql || Zend || Devshed
    Unix - FreeBSD || FreeBsdForums || Man Pages
    They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.

  6. #6
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Mara, HTCs are indeed IE-only.

    Congrats Andrew-J2000, and welcome to the UK!
    Where are you based?


    M@rco

  7. #7
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cheers Maelstrom & M@rco, i'm now staying in walthamstow tempararily till i find a house. I've not got on-line yet, but i'm currently looking for a job in web-development so untill i get some money in a will have to wait for a permenant connection, hopefully it wont be too long tho.

  8. #8
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is that Walthamstow in London or Walthamstow in Wales?!



    M@rco


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
  •