Text on Background Code Wont Work! Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
4 posters

    Text on Background Code Wont Work!

    Donal
    Donal
    Forumember


    Male Posts : 467
    Reputation : 3
    Language : English
    Location : England

    Solved Text on Background Code Wont Work!

    Post by Donal July 26th 2010, 11:21 pm

    I put up a code so I can type on a image and the text is randomized like a banner jumble but this is text. But the code doesn't work and I desperately need someone to fix it.

    Code:
    <table border="0" cellpadding="0" cellspacing="0">
    <tbody><tr>

    <td style="text-align: center;" valign="middle" width="300" background="http://i31.tinypic.com/awuy4h.jpg" height="150">

    <script type="text/javascript" >
    window.onload=function(){   
    var wch=(Math.floor(Math.random()*2)+1);   
    document.getElementById('ran'+wch).style.display='inline';

    <span id="ran1"><font color="black" size="+1">Hello<br></span></font></td>
    </span>
    <span id="ran2"><font color="black" size="+1">Bye<br></span></font></td>
    </span>

    </tr>
    </tbody></table>

    Thanks in Advance
    kirk
    kirk
    Forumaster


    Male Posts : 11037
    Reputation : 653
    Language : English,Vulcan,Klingon, Romulan,& Gorn

    Solved Re: Text on Background Code Wont Work!

    Post by kirk July 27th 2010, 10:02 am

    hi i got your pm.

    i do not know exactly what it is you want?
    like what text do you want written in the block's. what part of the blocks and are all three blocks supposed to appear?

    i did manage to take out the scribble part of the code that was showing up. but other t6hen that i need to know exactly what it is you want and are trying to do.

    Code:
    table border="0" cellpadding="0" cellspacing="0">
    <tbody><tr>

    <td style="text-align: center;" valign="middle" width="300" background="http://i31.tinypic.com/awuy4h.jpg" height="150">

    <script type="text/javascript" >


    <span id="ran1"><font color="black" size="+1">Hello<br></span></font></td>
    </span>
    <span id="ran2"><font color="black" size="+1">Bye<br></span></font></td>
    </span>

    </tr>
    </tbody></table>
    Donal
    Donal
    Forumember


    Male Posts : 467
    Reputation : 3
    Language : English
    Location : England

    Solved Re: Text on Background Code Wont Work!

    Post by Donal July 27th 2010, 7:57 pm

    I want to:
    A background made in photoshop(done) but I want to type on it using html(done) but I want to make that text like banner jumble (the texts get jumbled up and every time you click away then click back it's a different text)

    And I didn't want 3 blocks, I just want one. Hope you can help kirk. Thanks for responding.
    Donal
    Donal
    Forumember


    Male Posts : 467
    Reputation : 3
    Language : English
    Location : England

    Solved Re: Text on Background Code Wont Work!

    Post by Donal July 28th 2010, 6:17 pm

    bump. Help please kirk.
    avatar
    mollu
    New Member


    Posts : 5
    Reputation : 0
    Language : En/Ger/Et

    Solved Re: Text on Background Code Wont Work!

    Post by mollu July 28th 2010, 7:07 pm

    Something like this?

    Code:
    <script type="text/javascript" >
    window.onload=function(){ 
      var texts=["Text 1","Text 2","<a href='http://www.google.com'>Text 3, Click me!</a>","Text 4","Text 5 <img src='http://2img.net/i/fa/i/smiles/icon_razz.gif'>","Text 6"];
      var wch=(Math.floor(Math.random()*6)); 
      document.getElementById('textPlacer').innerHTML = texts[wch];
    }
    </script>

    <table border="0" cellpadding="0" cellspacing="0">
    <tbody><tr>
    <td style="text-align: center;" valign="middle" width="300" background="http://i31.tinypic.com/awuy4h.jpg" height="150">
    <font color="black" size="+3"><span id="textPlacer"></span></font>
    </td></tr></tbody></table>
    Donal
    Donal
    Forumember


    Male Posts : 467
    Reputation : 3
    Language : English
    Location : England

    Solved Re: Text on Background Code Wont Work!

    Post by Donal July 29th 2010, 9:55 am

    Yes Thanks Mollu! This is solved now Wink
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    Solved Re: Text on Background Code Wont Work!

    Post by Sanket July 29th 2010, 10:18 am

    Since this thread appears to be solved, I will lock this thread and mark it as solved.
    Text on Background Code Wont Work! 2j4t5a8

    Sanket Smile