الخيالية سبيشل المشرفة العامة


نقاط : 83233 التقييم : 0 تاريخ التسجيل : 27/07/2009 العمر : 38
 | موضوع: هذا الكود لعرض وصله جديدة كل يوم (من الممكن يكون خبر أو اعلان محدد بيوم معين كل اسبوع 22.11.10 21:26 | |
| - الكود:
-
<html> <head> <****** language="Java******"> //****************************************************** // * ****** from http://ldpoint.com // * Phone and internet services, tools* // * You can use this code if you leave this message* // ****************************************************** function GetTodaysURL() { var locationlist = new URLList ( "1.html", // Monday "2.html", // Tuesday "3.html", "4.html", "5.html", "6.html", "7.html" // Sunday ); now = new Date(); num = now.getDay(); if (num == 0) num = 7; location.href = locationlist.list[num-1]; } function URLList () { var argv = URLList.arguments; var argc = argv.length; this.list = new Object(); for (var i = 0; i < argc; i++) this.list[i] = argv[i]; this.count = argc; return this; } </******> </head> <body> Example of the code, choosing <a href="java******:GetTodaysURL()"> the page of that day</a>. Tomorrow here will be shown another page. </body> </html> | |
|