Need a good code

socrboy24

Resident
Joined
Jul 7, 2008
Messages
647
Reaction score
0
FP$
6
Alright here's the deal, I own an advertising forum. I have a new way of advertising but need some code to make it happen. I need it to do the following:

* Be a table (make random like the banner advertising code)
* It shows the text that I input into it.
* every time the index is refreshed it will show a new table with a new forum in it.

I want the table to be reasonably sized for a good amount of content.

Link to forum: http://www.advertspalace.net/AP/phpBB3/index.php
 
So you basically want random text to display in a table each refresh?

Code:
<table border="1" cellpadding="2" cellspacing="2">
	<tr>
		<td>
			<script type="text/javascript">function swg_ap_randomads() {var ads = new Array();

			// List of text
			ads[0] = 'Forum 1 is amazing, it offers this and that and runs on phpBB3, visit us!';
			ads[1] = 'Forum 2 is so good you\'ll think you\'re in heaven! come join our community!';
			ads[2] = 'Looking for computing help? check us out - forum 3!';
			
			// do not edit
			i=Math.floor(Math.random()*ads.length);document.write(ads[i]);} swg_ap_randomads();</script>
		</td>
	</tr>
</table>
 
That is just what I needed. Now how can I make those clickable with a pop up window and such?
 
Back
Top Bottom