Using JavaScript to make the markup codes more versatile.

Discussion in 'Communications' started by Lobot_Omy, Aug 8, 2001.

Thread Status:
Not open for further replies.
Moderators: JoinTheSchwarz, LAJ_FETT, Ramza
  1. Obi-Zahn Kenobi Jedi Grand Master

    Member Since:
    Aug 23, 1999
    star 7
    E-mail me
    It works, so type in this({ is substituted for brackets):

    {link=mailto:entere-mailaddresshere@woohoo.com}Message text here{/link}

    It doesn't work on mine, because the default mail client isn't installed.
  2. Phantom_Catfish Jedi Master

    Member Since:
    Sep 10, 2001
    star 4
    thanks fellas, i'll try it out in a few.
  3. Phantom_Catfish Jedi Master

    Member Since:
    Sep 10, 2001
    star 4
    <img src="http://www.starwars.com/episode-ii/feature/20010515/img/2_bg.jpg">

    first one dont work, thanks though.

    [image=http://www.starwars.com/episode-ii/feature/20010515/img/2_bg.jpg]


    Ureka!
    Which JC member is this?
  4. Lobot_Omy Moderator Emeritus

    Member Since:
    Jul 9, 2001
    star 6
    This script no longer allowed
  5. Lobot_Omy Moderator Emeritus

    Member Since:
    Jul 9, 2001
    star 6
    This script no longer allowed
  6. Emperor_Dan Jedi Padawan

    Member Since:
    Aug 21, 1999
    star 4
    Hmmm, only I got a %5 in there instead of an underscore..
  7. Lobot_Omy Moderator Emeritus

    Member Since:
    Jul 9, 2001
    star 6
    Yep, because it doesn't convert it to an underscore.
  8. Emperor_Dan Jedi Padawan

    Member Since:
    Aug 21, 1999
    star 4
  9. Lobot_Omy Moderator Emeritus

    Member Since:
    Jul 9, 2001
    star 6
    Well,it should. Maybe I should put the username in a variable. That might do the trick.

    The same problem persists for users with the '-' character in their usernames.
  10. Woofer Jedi Padawan

    Member Since:
    Aug 27, 2001
    star 4
    Did anyone try using unescape() to decode the strings first to get past the Netscape problem?

    Code Sample, using curly braces for sqaure brackets:
    {link=javascript:alert(unescape("This%20is%20a%20test."))}Click?{/link}

    Click?

    It looks the same under IE, but need a Netscape user to confirm this.
  11. Lobot_Omy Moderator Emeritus

    Member Since:
    Jul 9, 2001
    star 6
    Yeah, but it takes up tag space, plus not many people here use Netscape from my understanding.
  12. Night4554 Jedi Knight

    Member Since:
    Oct 9, 2000
    star 5
    I just discovered for the confirm, you can't have the &replies=61 at the end

    This Thread

    This Thread

    see?

    ¤Night
  13. Woofer Jedi Padawan

    Member Since:
    Aug 27, 2001
    star 4
    Probably has to do with the length of the link more than anything... notice the gap in your example?

    And in regards to the unescape message above, yes I realize what you point out, but I actually had somebody complain to me about the %20s and thought how to avoid it when possible. Does it also help with the %5 problem mentioned above?
  14. Valiowk Jedi Grand Master

    Member Since:
    Apr 23, 2000
    star 6
    Night: You don't need to put the "replies=#" in the first place, because the only use for it is to show that a thread has a new post after you have gone to that thread before. Otherwise, it has completely no other purpose, so you can leave it out. And yes, the space is because of the length of the link, so you can just make the link shorter.
  15. Night4554 Jedi Knight

    Member Since:
    Oct 9, 2000
    star 5
  16. Lobot_Omy Moderator Emeritus

    Member Since:
    Jul 9, 2001
    star 6
    I don't know if this could possibly be useful, but here it goes anyway...

    Dead links:

    Code 1: javascript:void

    Or another one which basically does the same thing.

    Code 2: javascript://

    Example of code 1

    Example of code 1
  17. Attack_Of_Da_Gnomes Jedi Master

    Member Since:
    Jan 2, 2002
    star 4
  18. Night4554 Jedi Knight

    Member Since:
    Oct 9, 2000
    star 5


    okay figured that out, move along move along

    ¤Night
  19. KitFist0 Jedi Master

    Member Since:
    Nov 10, 2001
    star 4
    Griffz had this how do u send a message to someone when they enter your profile ?
  20. Dark Lady Mara Manager Emeritus

    Member Since:
    Jun 19, 1999
    star 7
    Look at the properties of the two images in the bio section of Lobot_Omy's profile.
  21. Well_Of_Souls Jedi Master

    Member Since:
    Aug 26, 2001
    star 5
  22. KitFist0 Jedi Master

    Member Since:
    Nov 10, 2001
    star 4
    thanks annoying java implimented :)
  23. Lobot_Omy Moderator Emeritus

    Member Since:
    Jul 9, 2001
    star 6
    Woah! No wonder my alert message stopped working. There are no more cookies! The Cookie monster will be very angry about this.
  24. Night4554 Jedi Knight

    Member Since:
    Oct 9, 2000
    star 5
    it worked for me ?[face_plain]

    ¤night
  25. Lobot_Omy Moderator Emeritus

    Member Since:
    Jul 9, 2001
    star 6
    It stopped storing cookies for me, though. What makes me different from you or anyone else for that matter?! I just want to be treated like everyone else, with the respect I deserve. Is that so much to ask?! Prejudice! Prejudice I say! I want my cookie and I want it now! 8-}
Moderators: JoinTheSchwarz, LAJ_FETT, Ramza
Thread Status:
Not open for further replies.