Results 1 to 14 of 14

Thread: I'm a total HTML newb, here x.x

  1. #1
    Recognized Member Jessweeee♪'s Avatar
    Join Date
    Jul 2005
    Location
    i'm on a sandbar help
    Posts
    19,882
    Blog Entries
    12

    FFXIV Character

    Sarangerel Qha (Twintania)
    Contributions
    • Former Cid's Knight
    • Former Site Staff

    Pink Grin I'm a total HTML newb, here x.x

    As you can see, I've been playing with drop down boxes...I'm starting up a freeweb and I was going to litter an entire page with them XD

    Would any of you know how I can get a different result for each option?

  2. #2
    Recognized Member Xander's Avatar
    Join Date
    Aug 2003
    Location
    UK
    Posts
    5,333
    Contributions
    • Former Cid's Knight

    Default

    <FORM>
    <SELECT name="quotemenu">
    <OPTION>Character Quote of the Week<BR><BR></OPTION>
    <OPTION onClick="alert('Yuna! This is our story! Now let\'s see this thing through together.')">Tidus</OPTION>
    <OPTION onClick="alert('I like Tidus')">Yuna</OPTION>
    <OPTION onClick="alert('I like Blitzball')">Wakka</OPTION>
    <OPTION onClick="alert('I wear belts')">Lulu</OPTION>
    </SELECT>
    </FORM>

    Is this what you mean? I haven't used these for ages but I just changed the html around a bit. You had onChange on the Select (whole menu) so I guess it appeared when anything changed. I made an OPTION for each character, changed onChange to onClick and put on each one so it alerts when you click each one.

    I dunno if I did it with exact proper code but it seems to work

    <*FORM*>
    <*SELECT name="quotemenu"*>
    <*OPTION*>Character Quote of the Week<*BR*><*BR*></*OPTION*>
    <*OPTION onClick="alert('Yuna! This is our story! Now let\'s see this thing through together.')"*>Tidus</*OPTION*>
    <*OPTION onClick="alert('I like Tidus')"*>Yuna<*/OPTION*>
    <*OPTION onClick="alert('I like Blitzball')"*>Wakka</*OPTION*>
    <*OPTION onClick="alert('I wear belts')"*>Lulu<*/OPTION*>
    <*/SELECT*>
    <*/FORM*>

    Remove all the *s
    rawr

  3. #3
    Recognized Member Jessweeee♪'s Avatar
    Join Date
    Jul 2005
    Location
    i'm on a sandbar help
    Posts
    19,882
    Blog Entries
    12

    FFXIV Character

    Sarangerel Qha (Twintania)
    Contributions
    • Former Cid's Knight
    • Former Site Staff

    Default

    Okie dokie, thanks n.n

  4. #4
    Last Exile Baloki's Avatar
    Join Date
    Sep 2003
    Location
    Dreaming a dream~
    Posts
    8,425
    Articles
    5
    Blog Entries
    2

    FFXIV Character

    Baloki Kyuu (Sargatanas)
    Contributions
    • Former Senior Site Staff

    Default

    Quote Originally Posted by Xander View Post
    <FORM>
    <SELECT name="quotemenu">
    <OPTION>Character Quote of the Week<BR><BR></OPTION>
    <OPTION onClick="alert('Yuna! This is our story! Now let\'s see this thing through together.')">Tidus</OPTION>
    <OPTION onClick="alert('I like Tidus')">Yuna</OPTION>
    <OPTION onClick="alert('I like Blitzball')">Wakka</OPTION>
    <OPTION onClick="alert('I wear belts')">Lulu</OPTION>
    </SELECT>
    </FORM>

    Is this what you mean? I haven't used these for ages but I just changed the html around a bit. You had onChange on the Select (whole menu) so I guess it appeared when anything changed. I made an OPTION for each character, changed onChange to onClick and put on each one so it alerts when you click each one.

    I dunno if I did it with exact proper code but it seems to work

    <*FORM*>
    <*SELECT name="quotemenu"*>
    <*OPTION*>Character Quote of the Week<*BR*><*BR*></*OPTION*>
    <*OPTION onClick="alert('Yuna! This is our story! Now let\'s see this thing through together.')"*>Tidus</*OPTION*>
    <*OPTION onClick="alert('I like Tidus')"*>Yuna<*/OPTION*>
    <*OPTION onClick="alert('I like Blitzball')"*>Wakka</*OPTION*>
    <*OPTION onClick="alert('I wear belts')"*>Lulu<*/OPTION*>
    <*/SELECT*>
    <*/FORM*>

    Remove all the *s
    *nods*, that is the correct javascript

    I would recommend looking into Dynamic Drive as they have alot of neat scripts like that ^_^
    FOA

  5. #5
    Recognized Member Jessweeee♪'s Avatar
    Join Date
    Jul 2005
    Location
    i'm on a sandbar help
    Posts
    19,882
    Blog Entries
    12

    FFXIV Character

    Sarangerel Qha (Twintania)
    Contributions
    • Former Cid's Knight
    • Former Site Staff

    Default

    Thanks a bunch

  6. #6
    Last Exile Baloki's Avatar
    Join Date
    Sep 2003
    Location
    Dreaming a dream~
    Posts
    8,425
    Articles
    5
    Blog Entries
    2

    FFXIV Character

    Baloki Kyuu (Sargatanas)
    Contributions
    • Former Senior Site Staff

    Default

    No problem, if ya need any further help just give me a PM or post another thread here, tisn't like I ever leave the help forum xD
    FOA

  7. #7
    Your very own Pikachu! Banned Peegee's Avatar
    Join Date
    Mar 2001
    Posts
    19,488
    Blog Entries
    81

    Grin

    I'm just curious, but obviously javascript and other things can be used for evil and probably will be dealt with on a case-by-case basis. But buh? It's allowed?

    I guess as long as it's not too annoying, but obviously somebody can put a sig that spams you (unintentionally or whatever) with 'PG is amzing!' messages.

    =(

  8. #8
    Last Exile Baloki's Avatar
    Join Date
    Sep 2003
    Location
    Dreaming a dream~
    Posts
    8,425
    Articles
    5
    Blog Entries
    2

    FFXIV Character

    Baloki Kyuu (Sargatanas)
    Contributions
    • Former Senior Site Staff

    Default

    No, mentioning you is a bannable offense now so swear filtered
    FOA

  9. #9
    Draw the Drapes Recognized Member rubah's Avatar
    Join Date
    Dec 2004
    Location
    Now Destiny is done.
    Posts
    30,655
    Blog Entries
    21
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    we like to give people the benefit of the doubt until they start abusing the benefit and then we remove all the doubts.

  10. #10
    Last Exile Baloki's Avatar
    Join Date
    Sep 2003
    Location
    Dreaming a dream~
    Posts
    8,425
    Articles
    5
    Blog Entries
    2

    FFXIV Character

    Baloki Kyuu (Sargatanas)
    Contributions
    • Former Senior Site Staff

    Default

    Quote Originally Posted by rubah View Post
    we like to give people the benefit of the doubt until they start abusing the benefit and then we remove all the doubts.
    CSS positioning ftw?
    FOA

  11. #11
    i n v i s i b l e Tech Admin o_O's Avatar
    Join Date
    Jun 2001
    Location
    New Zealand
    Posts
    2,957
    Blog Entries
    1

    FFXIV Character

    Humphrey Squibbles (Sargatanas)

    Default

    Quote Originally Posted by Baloki View Post
    CSS posi<b></b>tioning ftw?
    I miss that. :{
    <body style="cursor: crosshair; background: rgb(0,255,0);">
    You can still do a whole lot of stuff with code though. In reality I think the filter should be more strict. </body>

  12. #12
    Last Exile Baloki's Avatar
    Join Date
    Sep 2003
    Location
    Dreaming a dream~
    Posts
    8,425
    Articles
    5
    Blog Entries
    2

    FFXIV Character

    Baloki Kyuu (Sargatanas)
    Contributions
    • Former Senior Site Staff

    Default

    Quote Originally Posted by o_O View Post
    Quote Originally Posted by Baloki View Post
    CSS posi<b></b>tioning ftw?
    I miss that. :{
    You can still do a whole lot of stuff with code though. In reality I think the filter should be more strict.
    That was my fault, I spent a day just renaming the whole forum, takes alot of effort to post in top 5 threads of each forum
    FOA

  13. #13
    An unknown quantity Disco Potato's Avatar
    Join Date
    Jul 2006
    Location
    California
    Posts
    520

    Default

    When I started making sites, I thought this one was pretty good...it has a lot of basic html codes:
    Funky Chickens HTML Help!

  14. #14
    Draw the Drapes Recognized Member rubah's Avatar
    Join Date
    Dec 2004
    Location
    Now Destiny is done.
    Posts
    30,655
    Blog Entries
    21
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    very basic; it hasn't been updated since I used it to learn html. . . six years agoxD

Posting Permissions

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