![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Too lazy to set a custom title
Join Date: Aug 2001
Location: The Netherlands
Posts: 13,723
|
Script question: Code that pulls my galleries with descriptions from a file
IS this possible?
I already know a script which gets random galleries from a txt file. You add this into a php script, and everytime a surfer clicks the link, a random url is picked. But what I want now, is almost the same, but then WITH description...IS this possible? And not a random description, but one special made for THAt gallery. so to be clearer(I hope) I want this amateur.txt http://www.url1.com Horny biatch http://www.url2.com Drunk amateur sucking http://www.url3.com Quashe fucking an amateur etc Now when my page loads it displays Quashe fucking an amateur Drunk amateur sucking Horny biatch and when it is loaded again it displays for example Drunk amateur sucking Quashe fucking an amateur Horny biatch it doesn't have to be different every time when the page is loaded, it is also okay if it can be changed once a day by pressing a button or so by me Any idea where I have to look>? Andre __________________
__________________
Questions? ICQ: 125184542 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jul 2002
Location: The Netherlands
Posts: 197
|
I can make it for you. contact me if you want more details
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: May 2002
Location: MI
Posts: 1,827
|
That can be done in two minutes with PHP using simple file opening procedures and pulling a random line from the text file.
If you need help contact me on ICQ: 70930467. Andy
__________________
Latest MMA news. http://www.mmawrapup.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Too lazy to set a custom title
Join Date: Aug 2001
Location: The Netherlands
Posts: 13,723
|
used this one
Code:
<table border="0" cellspacing="0" cellpadding="0"> <script language="JavaScript"> var across = 1; var down = 3; var before = '<td align="left"><a href="'; var after = '</a></td>'; var pix = new Array( '/cgi-bin/ucj/c.cgi?url=http://www.url1.com">desc 1', '/cgi-bin/ucj/c.cgi?url=http://www.url2.com">desc 2', '/cgi-bin/ucj/c.cgi?url=http://www.url3.com">desc 3', '/cgi-bin/ucj/c.cgi?url=http://www.url4.com">desc 4' ); for(var a=0; a<down; a++){ document.write("<tr>"); for(var i=0; i<across; i++){ var cnum = Math.round((pix.length-1)*Math.random()); document.write(before+pix[cnum]+after); size = pix.length; for (var j=0; j<=size; j++) pix[j] = ((j == cnum) ? "delete" : pix[j]); for (var k=cnum; k<size-1; k++) if (k != size) pix[k] = pix[k+1]; pix.length = size-1; } document.write("</tr>"); } </script> </table> Andre
__________________
Questions? ICQ: 125184542 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Too lazy to set a custom title
Join Date: Aug 2001
Location: The Netherlands
Posts: 13,723
|
for seome reason even after adding [code ] before and the close tag after the code, it keeps displaying the output.
www.thumbtgp.com/code.txt for the script Andre
__________________
Questions? ICQ: 125184542 |
![]() |
![]() ![]() ![]() ![]() ![]() |