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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-19-2002, 11:57 AM   #1
justsexxx
Too lazy to set a custom title
 
Join Date: Aug 2001
Location: The Netherlands
Posts: 13,723
Javascript that shows the date and the link

Hi,

I have found some javscripts that shows the date.

But what I want is the following:

The date must not only be showed, but must also be the link. I can't get this done

further, I would like to have the code for yesterday as well.

so i t will ook like this

19june
19june
18june
18june etc and when you load it tomorrow, you will see

20 june
20june
19 june
19june

Anyone knows how to make that?

Andre
__________________
Questions?

ICQ: 125184542
justsexxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2002, 12:26 PM   #2
hyper
Confirmed User
 
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
for your tgp? just call the date in the script rather than the url
__________________
hyper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2002, 12:48 PM   #3
justsexxx
Too lazy to set a custom title
 
Join Date: Aug 2001
Location: The Netherlands
Posts: 13,723
Well I would like to be that the date is the link
(it's for a CJ)
Andre
__________________
Questions?

ICQ: 125184542
justsexxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2002, 01:12 PM   #4
funkmaster
So Fucking Banned
 
Join Date: Sep 2001
Location: shell beach
Posts: 7,938
http://javascript.internet.com/calendars/
funkmaster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2002, 01:15 PM   #5
hyper
Confirmed User
 
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
well when you layout your script you usually output the url with a string like this<.a href="%url%"> %desc% </a> for the description what you need to do is change it to something like %date% I dont know what script your using so i can not tell you the exact data string to use..

hope this helps you somewhat
__________________

Last edited by hyper; 06-19-2002 at 01:16 PM..
hyper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2002, 01:54 PM   #6
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
Join Date: Jan 2002
Location: Holland
Posts: 9,870
PHP Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- 
Begin
var month="";
var 
myweekday="";
var 
year="";
mydate = new Date();
mymonth mydate.getMonth();
myweekdaymydate.getDate();
weekdaymyweekday;
myyearmydate.getYear();
year myyear
if(mymonth == 0) {
month "JANUARI "}
else if(
mymonth ==1)
month "FEBRUARI "
else if(mymonth ==2)
month "MAART "
else if(mymonth ==3)
month "APRIL "
else if(mymonth ==4)
month "MEI "
else if(mymonth ==5)
month "JUNI "
else if(mymonth ==6)
month "JULI "
else if(mymonth ==7)
month "AUGUSTUS "
else if(mymonth ==8)
month "SEPTEMBER "
else if(mymonth ==9)
month "OKTOBER "
else if(mymonth ==10)
month "NOVEMBER "
else if(mymonth ==11)
month "DECEMBER "
// End -->
</SCRIPT> 

// then somewhere on the page
PHP Code:
document.write("<td><img src='pics//s_"+((10*myweekday)) +".jpg'><//td>"); 
__________________
Don't let greediness blur your vision | You gotta let some shit slide
icq - 441-456-888

Last edited by grumpy; 06-19-2002 at 01:58 PM..
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2002, 01:54 PM   #7
justsexxx
Too lazy to set a custom title
 
Join Date: Aug 2001
Location: The Netherlands
Posts: 13,723
Well I don't use a "script"

It's only a CJ, so the only output what I have are some banners, and the rest all dates in tables

Andre( or did I understand you wrong)
__________________
Questions?

ICQ: 125184542
justsexxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-19-2002, 01:55 PM   #8
justsexxx
Too lazy to set a custom title
 
Join Date: Aug 2001
Location: The Netherlands
Posts: 13,723
Grumpy can you pls put the code in

[code ]
[/ code] ?

Thnx a lot! great thnx I will try it

Andre
__________________
Questions?

ICQ: 125184542

Last edited by justsexxx; 06-19-2002 at 01:57 PM..
justsexxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.