sujata ghosh
11-22-2002, 07:56 AM
hi to all!
i am getting problem in following banner.www.kshitij.com/fxthoughts/fxtrack.html
its ramdom banner which counts hits also. it suppose to open each link into same window, but it's not doing do. its giving error on the status bar. but if i open one banner and close it window then again open next banner then its ok. but each links of each banner open is same window is not working. but hits traking is working perfectly. can any one tell where is the error is. i have validate the code with html validator also. but no result. do you any good debugger or validator for javascript only. or any software??
i need hepl immediatly. to better understand, please click through all banners. i hope i will get help quickly.
thanks in advance.
sujata
sujata ghosh
11-23-2002, 05:43 AM
yes u can as of my link is not working here. i don;t know why.
here are they:
<html><head>
<script language="JavaScript1.1">
var winForm1 = "<form name='counter' action='/cgi-bin/fxlink.cgi' method='post'>\n"
+ "<input type=hidden name='logfile' value='";
var winForm2 = "'>\n<input type=hidden name='newLink' value='";
var winForm3 = "'></form>";
var slideimages=new Array();
var slidelinks=new Array();
var slideFiles = new Array();
function slideshowimages(){
for (i=0;i<slideshowimages.arguments.length;i++){
slideimages[i]=new Image();
slideimages[i].src=slideshowimages.arguments[i];
}
}
function slideshowfiles(){
for (i=0;i<slideshowfiles.arguments.length;i++){
slideFiles[i]=slideshowfiles.arguments[i];
}
}
function slideshowlinks(){
for (i=0;i<slideshowlinks.arguments.length;i++){
slidelinks[i]=slideshowlinks.arguments[i];
//alert(i + '\n' + slideshowlinks.arguments[i]);
}
}
function gotoshow(){
//if (window.winslide){winslide.close()}
if (!window.winslide||winslide.closed)
winslide=window.open("","winslide");
//alert(whichimage + "\n" + slideFiles[whichimage] + "\n" + slidelinks[whichimage]);
winslide.document.write(winForm1 + slideFiles[whichlink] + winForm2
+ slidelinks[whichlink] + winForm3);
winslide.document.close();
winslide.document.forms[0].submit();
winslide.focus();
}
</script>
</head>
<body>
<a href="javascript:gotoshow()">
<img src="http://www.k****ij.com/images/21stcfnew1.gif" name="slide" border=0 height=60 width=468>
</a>
<script language="JavaScript1.1">
slideshowimages("http://www.k****ij.com/images/21stcfnew1.gif","http://www.k****ij.com/images/banner66.gif","http://www.k****ij.com/images/21stcfnew2.gif","http://www.k****ij.com/images/banner80.gif","http://www.k****ij.com/images/21stcfnew3.gif","http://www.k****ij.com/images/banner92.gif","http://www.k****ij.com/images/cmsyellow.gif","http://www.k****ij.com/images/cmsblue.gif")
slideshowfiles("fxcms.log","fxcmfx66.log","fxcms.log","fxcmfx80.log","fxcms.log","fxcmfx92.log","fxcms.log","fxcms.log")
slideshowlinks("http://www.cms-forex.com","http://www.fxcm.com/charts.html","http://www.cms-forex.com","http://www.fxcm.com/mini_whytrade.html","http://www.cms-forex.com","http://www.fxcm.com/index.html","http://www.cms-forex.com","http://www.cms-forex.com")
var slideshowspeed=15000
var whichlink=0
var whichimage=0
function slideit(){
if (!document.images){
return
}
//alert(whichimage + '\n' + slideimages[whichimage]);
document.images.slide.src=slideimages[whichimage].src
whichlink=whichimage
if (whichimage<slideimages.length-1)
whichimage++
else
whichimage=0
setTimeout("slideit()",slideshowspeed)
}
slideit();
</script>
</body>
</html>
sujata ghosh
12-02-2002, 11:29 AM
can anyone please help me by giving any clue or by giving site address from where i can get some script of my kind.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.