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

Thread: bbbutton help

  1. #1
    Regular Coder
    Join Date
    Nov 2006
    Posts
    601
    Thanks
    1
    Thanked 2 Times in 2 Posts

    bbbutton help

    i have made my bbbutton code

    Code:
    <div style='padding-left: 5px; padding-top:5px;'>
    <input type='button' value='B' name='btnBold' onclick='wrapText(document.getElementById(&#39;inputforum&#39;),&#39;<b>&#39;,&#39;</b>&#39;);'>
    <input type='button' value='I' name='btnItalic' onclick='wrapText(document.getElementById(&#39;inputforum&#39;),&#39;<i>&#39;,&#39;</i>&#39;);'>
    <input type='button' value='U' name='btnUnderline' onclick='wrapText(document.getElementById(&#39;inputforum&#39;),&#39;<u>&#39;,&#39;</u>&#39;);'>
    <input type='button' value='IMG' name='btnImg' onclick='wrapText(document.getElementById(&#39;inputforum&#39;),&#39;<img src="&#39;,&#39;" />&#39;);''>
    <input type='button' value='URL' name='btnUrl' onclick='wrapText(document.getElementById(&#39;inputforum&#39;),&#39;&#39;,&#39;&#39;);'>
    <input type='button' value='PHP' name='btnPHP' onclick='wrapText(document.getElementById(&#39;inputforum&#39;),&#39;[php]&#39;,&#39;&#39;);'></div>
    but i have no idea how to make it so like on here when you hit the link button a box comes up so you can enter the url?? this is the same with the images... can any 1 shine any light ointo this?
    also is there any other features i could add to this?

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    It's calling a window.prompt() function like
    Code:
    window.prompt("Enter the url");
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Regular Coder
    Join Date
    Nov 2006
    Posts
    601
    Thanks
    1
    Thanked 2 Times in 2 Posts
    hey thnaks iv looked into them via google but i have no idea ow to use it within my bbcode via <input type='button' value='URL' name='btnUrl' onclick='wrapText(document.getElementById('inputforum'),'','');'>


  •  

    Posting Permissions

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