The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Text on Background Code Wont Work!

View previous topic View next topic Go down

Solved Text on Background Code Wont Work!

Post by Donal on 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

Donal
Forumember

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

http://advertisepilot.com/

Back to top Go down

Solved Re: Text on Background Code Wont Work!

Post by kirk on 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>

kirk
Forumaster

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

Back to top Go down

Solved Re: Text on Background Code Wont Work!

Post by Donal on 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
Forumember

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

http://advertisepilot.com/

Back to top Go down

Solved Re: Text on Background Code Wont Work!

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

bump. Help please kirk.

Donal
Forumember

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

http://advertisepilot.com/

Back to top Go down

Solved Re: Text on Background Code Wont Work!

Post by mollu on 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://illiweb.com/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>

mollu
New Member

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

Back to top Go down

Solved Re: Text on Background Code Wont Work!

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

Yes Thanks Mollu! This is solved now Wink

Donal
Forumember

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

http://advertisepilot.com/

Back to top Go down

Solved Re: Text on Background Code Wont Work!

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

Since this thread appears to be solved, I will lock this thread and mark it as solved.


Sanket Smile


Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum