View Full Version : First Attempt at Hack Creation
jwashburn
10-02-2006, 06:13 PM
I am working on my first hack and I have the content displaying, but I am throwing off the rest of the content that should be in the center column.
How are you supposed to build a simple table with information in it?
You can see the problem I am having at
http://www.norcalmotocross.com/cmps_index.php
You can see the recent threads got pushed way down and to the left.
The code that I am using to display the data is
<table width="100%">
<tr>
<td><script type="text/javascript">choosePhoto(Ll);</script></td>
<td><script type="text/javascript">choosePhoto(Ll);</script></td>
</tr>
</table>
jwashburn
10-02-2006, 06:37 PM
Okay I removed the table tags and reuploaded it. Now things seem to be in better order, but now all my links are underlined in red and acting wierd
jwashburn
10-02-2006, 07:27 PM
Do you think I might be having a problem because I am using javascript?
Tom M
10-02-2006, 08:59 PM
It would be a bit easier if you would post the module.
jwashburn
10-02-2006, 10:26 PM
Oh yeah, I guess it would :)
var Ll = new Array();
Ll[0] = "http://joeywashburn.com/photos/20842723-Ti.jpg";
Ll[1] = "http://joeywashburn.com/photos/21539361-Ti.jpg";
Ll[2] = "http://joeywashburn.com/photos/12248309-Ti.jpg";
Ll[3] = "http://joeywashburn.com/photos/21541053-Ti.jpg";
Ll[4] = "http://joeywashburn.com/photos/21541086-Ti.jpg";
var P = new Array();
P[0] = "http://joeywashburn.com/photos/21541448-Ti.jpg";
P[1] = "http://joeywashburn.com/photos/21541604-Ti.jpg";
var Lr = new Array();
Lr[0] = "http://joeywashburn.com/photos/21566240-Ti.jpg";
Lr[1] = "http://joeywashburn.com/photos/21566271-Ti.jpg";
Lr[2] = "http://joeywashburn.com/photos/21566326-Ti.jpg";
function choosePhoto(parray)
{
inx = Math.floor(Math.random()*parray.length);
img = parray[inx];
document.write('<img border="2" src="' + img + '"/>');
}
<script type="text/javascript">choosePhoto(Ll);</script>
<script type="text/javascript">choosePhoto(P);</script>
<script type="text/javascript">choosePhoto(Lr);</script>
jwashburn
10-03-2006, 02:03 PM
I got it working for the most part.
My spacing is now. off.
Please take a look at
http://www.norcalmotocross.com/cmps_index.php
Why is my custom module sitting a little lower then everything else
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.