<img src="..."(call.image.RANDOM) 0_o

Discussion in 'HTML & Website Design' started by puremonopoly, Jun 12, 2009.

  1. #1
    <img src="..." showImage.Random(); style="float: left; padding: 5px"/>

    I'm trying to get a randomized image to be added to a specific dynamic location. I need it to fit into <img src=""> How would I go about calling the JavaScript from a separate location so as it doesn't act against my dynamic content? I need it to call images from a sub-folder calling images randomly upon refresh and plug itself into the <img src=""()".jpg" tag.

    Thank you for any suggestions in advance! :D
     
    puremonopoly, Jun 12, 2009 IP
  2. puremonopoly

    puremonopoly Active Member

    Messages:
    925
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    70
    #2
    k, I should have thought it out before I posted :D

    <img src="randomimage.php">

    0_o

    It wasn't working before but I realized that my .php was off. ^_^

    Any other ways of doing this would be cool to know?

    Thank you again,
     
    puremonopoly, Jun 12, 2009 IP