SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Forum Style

  1. #1
    SitePoint Enthusiast 'K''s Avatar
    Join Date
    Mar 2003
    Location
    UK.West Sussex
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Forum Style

    Hi,

    Me and a friend are making our own forum but we've got stuck in a small (we hope) problem.

    On InvisionBoard when you go to insert a URL into your post, it pops up a box with what the URL is, and a second box with what text will link to the URL.

    Then it inputs the required code within the text area.

    If anyone can help i'd appreciate it

  2. #2
    SitePoint Zealot
    Join Date
    Jul 2002
    Location
    Fort Lauderdale
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function url() {
    url = prompt("Enter the URL:", "http://" );
    text = prompt("Enter the text to be displayed", "" );
    text = (text == "" ) ? url : text;
    document.forms['frmName'].elements['txtName'].value += //insert formatted url/text.
    }

    www.unpossiblemedia.com - A Fort Lauderdale based multimedia company.


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
  •