****PLEASE EXCUSE THE CONTENT...IT IS ADULT ORIENTED****
I do have access to use a server side database. It can be in any language. I wrote a little something with a js script. It was the only way i could think of calling the pics since they are links. This is what I have so far, but it doens't seem very stable to me...it seems there is an easier way to do it... Also the pics(links) are being called randomly...i would like them to be called but only change once a day.
HTML script...
HTML Code:
<table>
<tr>
<td><script>document.write( randomlink() );</script></td>
<td><script>document.write( randomlink() );</script></td>
<td><script>document.write( randomlink() );</script></td>
<td><script>document.write( randomlink() );</script></td>
</tr>
<tr>
<td><script>document.write( randomlink() );</script></td>
<td><script>document.write( randomlink() );</script></td>
<td><script>document.write( randomlink() );</script></td>
<td><script>document.write( randomlink() );</script></td>
</tr>
<tr>
<td><script>document.write( randomlink() );</script></td>
<td><script>document.write( randomlink() );</script></td>
<td><script>document.write( randomlink() );</script></td>
<td><script>document.write( randomlink() );</script></td>
</tr>
<tr>
<td><script>document.write( randomlink() );</script></td>
<td><script>document.write( randomlink() );</script></td>
<td><script>document.write( randomlink() );</script></td>
<td><script>document.write( randomlink() );</script></td>
</tr>
<tr>
<td><script>document.write( randomlink() );</script></td>
<td><script>document.write( randomlink() );</script></td>
<td><script>document.write( randomlink() );</script></td>
<td><script>document.write( randomlink() );</script></td>
</tr>
</table>
and this is the external .js scirpt...
Code:
var randomlinks=new Array()
randomlinks[0]='<a href="http://[...].com/movies/289/?t1/revs=grendel54" target="_blank"><img alt="[...]" src="thumbs/[...].jpg" style="border: 1px solid #BCBCBC" width="200" height="150"></a>'
randomlinks[1]='<a href="http://[...].com/movies/290/?t1/revs=grendel54" target="_blank"><img alt="[...]" src="thumbs/[...].jpg" style="border: 1px solid #BCBCBC" width="200" height="150"></a>'
randomlinks[2]='<a href="http://[...].com/movies/291/?t1/revs=grendel54" target="_blank"><img alt="[...]" src="thumbs/[...].jpg" style="border: 1px solid #BCBCBC" width="200" height="150"></a>'
randomlinks[3]='<a href="http://[...].com/movies/292/?t1/revs=grendel54" target="_blank"><img alt="[...]" src="thumbs/[...].jpg" style="border: 1px solid #BCBCBC" width="200" height="150"></a>'
randomlinks[4]='<a href="http://[...].com/movies/293/?t1/revs=grendel54" target="_blank"><img alt="[...]" src="thumbs/[...].jpg" style="border: 1px solid #BCBCBC" width="200" height="150"></a>'
randomlinks[5]='<a href="http://[...].com/movies/294/?t1/revs=grendel54" target="_blank"><img alt="[...]" src="thumbs/[...].jpg" style="border: 1px solid #BCBCBC" width="200" height="150"></a>'
randomlinks[6]='<a href="http://[...].com/movies/295/?t1/revs=grendel54" target="_blank"><img alt="[...]" src="thumbs/[...].jpg" style="border: 1px solid #BCBCBC" width="200" height="150"></a>'
randomlinks[7]='<a href="http://[...].com/movies/296/?t1/revs=grendel54" target="_blank"><img alt="[...]" src="thumbs/[...].jpg" style="border: 1px solid #BCBCBC" width="200" height="150"></a>'
randomlinks[8]='<a href="http://[...].com/movies/297/?t1/revs=grendel54" target="_blank"><img alt="[...]" src="thumbs/[...].jpg" style="border: 1px solid #BCBCBC" width="200" height="150"></a>'
randomlinks[9]='<a href="http://[...].com/movies/298/?t1/revs=grendel54" target="_blank"><img alt="[...]" src="thumbs/[...].jpg" style="border: 1px solid #BCBCBC" width="200" height="150"></a>'
function randomlink(){
var add = randomlinks[Math.floor(Math.random()*randomlinks.length)]
return(add)
}
EXCUSE THE CONTENT IT IS ADULT BASED
Edit: mod's edit
Do not post explicit text or URLs to p0rnography.
I understand that you are not intending to break any rules, and that this is simply the content you are working with, but please be considerate of the fact that this is a site for all ages.
...also, you can use [CODE]/* your code goes here */[/CODE] tags to make your code more readable.
Bookmarks