Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Nov 2006
    Posts
    601
    Thanks
    1
    Thanked 2 Times in 2 Posts

    error in javascript code... wont add url?

    what seems to be up with my code?

    Code:
     <a href="javascript:void(0);" onclick="surroundText('', '', document.myform.yourpost); return false;"><img style="border: none;" src="url.gif" alt="enterurl" /></a>
    when click all i get is javascript:void(0);

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,918
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    What is the function surroundText()?

  • #3
    Regular Coder
    Join Date
    Nov 2006
    Posts
    601
    Thanks
    1
    Thanked 2 Times in 2 Posts
    well basicly i want it to do this

    like the icons above when B is slected it makes it bold lol thats what this script is.. basicly the bbcode buttons


  •  

    Posting Permissions

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