Results 1 to 1 of 1
  1. #1
    Join Date
    Feb 2010
    Location
    WI
    Age
    36
    Posts
    1,341

    Default random img code help

    I want to know if its possible to setup a random img in my profile. I know how to use JavaScript code for this sort of thing:

    Code:
    <script language="JavaScript">
    <!--
    
    function random_imglink(){
      var myimages=new Array()
      //specify random images below. You can have as many as you wish
      myimages[1]="img"
      myimages[2]="img"
      myimages[3]="img"
      myimages[4]="img"
      myimages[5]="img"
      myimages[6]="img"
    
    //specify corresponding links below
      var imagelinks=new Array()
      imagelinks[1]="url"
      imagelinks[2]="url"
      imagelinks[3]="url"
      imagelinks[4]="url"
      imagelinks[5]="url"
      imagelinks[6]="url"
    
    var ry=Math.floor(Math.random()*myimages.length)
    
      if (ry==0)
         ry=1
         document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a>')
    }
    
      random_imglink()
    //-->
    </script>
    I know I dont need the URL links, I just didnt want to change it to much from what I originally used on a previous forum. Any way to set something like that up here?

    I know its in Java, so blah...
    Last edited by BobTD; 02-25-2010 at 05:13 PM.
    "Prediction: Zenimax Online is making an MMO set in the elder scrolls universe" -BobTD 8-25-2010 (search it on the forum)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. random question
    By EpsilonX in forum Role Playing Games (RPG)
    Replies: 11
    Last Post: 01-25-2010, 11:36 AM
  2. Random
    By Id.E.M in forum GF Lounge
    Replies: 26
    Last Post: 05-18-2009, 12:00 PM
  3. Morse code forums?
    By Foxhound in forum Post Anything
    Replies: 11
    Last Post: 04-10-2008, 07:43 PM
  4. Does anyone know how to change the Region code on a Xbox 360?
    By HyperShadow5592 in forum Consoles & PC
    Replies: 3
    Last Post: 03-29-2007, 10:47 PM
  5. Video Code
    By sparky in forum Questions & Suggestions
    Replies: 24
    Last Post: 01-19-2007, 08:52 AM

Posting Permissions

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

» Site Navigation

» Home
» FAQ

» Log in

User Name:

Password:

» Recent Threads

In-Depth Analysis:...
04-15-2024 11:52 PM
Last Post By Helenhoozy
04-15-2024 11:52 PM
Interested in Buying...
04-15-2024 01:23 PM
Last Post By derloocomonow
04-15-2024 01:23 PM
Expert Series Courses:...
04-15-2024 08:19 AM
Last Post By Helenhoozy
04-15-2024 08:19 AM
Gradual: A Fail-Safe...
04-15-2024 06:55 AM
Last Post By Helenhoozy
04-15-2024 06:55 AM
Unlocking the Potential:...
04-08-2024 04:39 AM
Last Post By AntonZes
04-08-2024 04:39 AM
The JuiceBox 40A EV...
04-08-2024 04:29 AM
Last Post By AntonZes
04-08-2024 04:29 AM
The Benefits of Using a...
04-08-2024 04:16 AM
Last Post By AntonZes
04-08-2024 04:16 AM

» Sponsors