GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Javascript that shows the date and the link (https://gfy.com/showthread.php?t=64893)

justsexxx 06-19-2002 11:57 AM

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

hyper 06-19-2002 12:26 PM

for your tgp? just call the date in the script rather than the url

justsexxx 06-19-2002 12:48 PM

Well I would like to be that the date is the link
(it's for a CJ)
Andre

funkmaster 06-19-2002 01:12 PM

http://javascript.internet.com/calendars/

hyper 06-19-2002 01:15 PM

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

grumpy 06-19-2002 01:54 PM

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>"); 


justsexxx 06-19-2002 01:54 PM

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)

justsexxx 06-19-2002 01:55 PM

Grumpy can you pls put the code in

[code ]
[/ code] ?

Thnx a lot! great thnx I will try it

Andre


All times are GMT -7. The time now is 07:55 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123