Hilfe beim Einbau eines J.Scripts

PHP:
<script language="javascript">
<!--
function ExtraClick()
{
        off('channel3');
        off('channel4');
        off('channel5');
}

function checkPoint (numChannels)       // returns 0 if all channels have been clicked or name of first unvisited channel encountered
{
        for (var i=1; i<=numChannels; i++)
        {
                if ( !(channelVisited[i]) )
                {
                        return ( "Bitte erst meinen Sponsor anklicken, er öffnet sich in einem neuen Fenster! ");
                }
        }
        return "";
}

function off (n)        // removes dot upon click of channel button and checks to see if OK to light quiz dot
{
        channelVisited[ parseInt(n.substring(7,8)) ] = true;
        if (isOK)
        {
        }
}


function loadQuiz (quizURL)     // if all channels have been visited, then goto quiz
{
        var result = checkPoint(numChannels);
        if ( result == "" ) { self.window.location = quizURL; } else { alert(result); }
}



function makeBooleanArray (length) {    // this function is an array constructor
        this.size = length;
        for (var i=1; i<=length; i++) { this[i] = false; }
        return this;
}

function main ()        // main routine
{
        if (isOK)
        {
                blank = new Image(); blank.src = "pictures/bullshit2.gif";
                reddot = new Image(); reddot.src = "pictures/bullshit2.gif";
                lighton = new Image(); lighton.src = "pictures/bullshit2.gif";
                lightoff = new Image(); lightoff.src = "pictures/bullshit2.gif";
        }
}
var numChannels = 1;    // global, number of channels on cruiser remote

var isOK = ( document.images ); //does this browser support image replaces?
var channelVisited = new makeBooleanArray(numChannels); //makes boolean array, with original elements all set to false

main ();
// -->

</script>
<html>
<head>
<title>$master_board_name - Portal</title>
<!-- 'Who Posted' Popup Window Hack -->
<script language="Javascript">
function who(threadid) {
	window.open("whoposted.php?threadid="+threadid+"&boardid=$boardid&styleid=$styleid$session", "moo", "toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300");
}
</script>
$headinclude
</head>
<!-- START Header -->
<body bgcolor="{pagebgcolor}" text="{fontcolorfirst}"{hgpicture}{bgproperties} id="bg">
$header
<!-- END Header -->			
<!-- START Login -->
<tr bgcolor="{tableb}" id="tableb">
<td>$quick_login</td></tr>
<tr bgcolor="{tablea}">
<td id="title"><table cellpadding=0 cellspacing=0 border=0 width="100%">
<tr>
<td><font size=1 face="{font}" color="{fontcolorsecond}"><b><a href="search.php?mode=daily$session">Son 24 saatin aktif konulari</a></b></font></td>
<td align="right">$portal_menu</td></tr></table></td></tr>
<tr>
<td bgcolor="{tablec}" align="center">
<table border=0 cellspacing=0 cellpadding=0 width=100%><tr><td valign=top align=left width=150>
<!-- Ab hier darf nichts geändert werden -->

<!-- START Box -->
$box
<!-- ENDE Box -->

<td>&nbsp;&nbsp;</td><td width=100% valign=top>

<!-- START Box -->
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="{tablebordercolor}" width="100%">
<TR><TD>
<table border="0" cellspacing=1 cellpadding=3 bgcolor="{tablebordercolor}" width="100%">
<TR>
<TD bgcolor="{tablea}" id="title"><font size="2" face="{font}" color="{fontcolorsecond}"><b>$master_board_name - Database</font></b>
</TD></TR>
<TR>
<TD bgcolor="{tableb}" id="tableb">
$database_header
<table width="100%" border="0" align="center" BGCOLOR="{tablebordercolor}" cellpadding="4" cellspacing="1">
	<tr>
	<td bgcolor="{tablec}"><font face="{font}" size="1">
	Su an <b>$all_cats</b> Kategoride <b>$all_down</b> Download var<br>
	Databasedeki yeni Downloadumuz <a href="portal_database.php?action=view&fid=$nfid&cid=$ncid&styleid=$styleid$session"><b>$nname ($ncount)</b></a>.<br>En cok download edilen <a href="portal_database.php?action=view&fid=$bfid&cid=$bcid&styleid=$styleid$session"><b>$bname</b></a> dur <b>$bcount</b> Download ile. </font></td></tr>
<tr bgcolor="{tableb}">
<td><table cellpadding=0 cellspacing=0 border=0 width="100%">
<tr>
<td><font size=1 face="{font}" color="{fontcolorsecond}"><b><a href="portal_database.php">Kategori</a>&nbsp;»&nbsp;<a href="portal_database.php?action=show_cat&cid=$cid&styleid=$styleid$session">Downloadlar</a>&nbsp;»&nbsp;$name</b></font></td>
<td align="right"><font size=1 face="{font}" color="{fontcolorsecond}"><b><a href="portal_database.php?action=top10&styleid=$styleid$session">Top 10</a>&nbsp;|&nbsp;<a href="portal_database.php?action=new&styleid=$styleid$session">Yeni Downloadlar</a></b></font></td></tr></table></td></tr></table><br>
	<table width="100%" border="0" cellspacing="1" cellpadding="4" align="center" BGCOLOR="{tablebordercolor}" >
        <tr> 
        <td width="20%" bgcolor="{tablea}" id="title"><font face="{font}" size="2" color="{fontcolorsecond}"><b>ISIM</b></font></td>
        <td width="80%" bgcolor="{tablea}" id="title" colspan="3">
	<table border="0" cellpadding="0" cellspacing="0">
        	<td width="100%"><font face="{font}" size="2"><b>$name</b></font></td>
        	<td><a href="mailto:$adminmail?subject=Bozuk Link ($name)&body=$name Isimli Link bozuktur."><img src="images/melden.gif" border=0 alt="Bozuk Link"></a></td>
        </table>
</td>

        </tr>
        <tr> 
        <td width="20%" height="61" bgcolor="{tableb}" id="tableb"><font face="{font}" size="2">Bilgiler</font></td>
        <td width="80%" height="61" bgcolor="{tablec}" id="tablec" colspan="3"><font face="{font}" size="2">$desc</font></td>
				</tr>
				
		<tr>
		<td width="20%" bgcolor="{tableb}" id="tableb"><font face="{font}" size="2">Version</font></td>
		<td width="80%" bgcolor="{tablec}" id="tablec" colspan="3"><font face="{font}" size="2">$version</font></td></tr>
				
		<tr>
		<td width="20%" bgcolor="{tableb}" id="tableb"><font face="{font}" size="2">Programci</font></td>
		<td width="80%" bgcolor="{tablec}" id="tablec" colspan="3"><font face="{font}" size="2">$autor</font></td></tr>
        <tr> 
        <td width="20%" bgcolor="{tableb}" id="tableb"><font face="{font}" size="2">Eklendigi tarih</font></td>
        <td width="30%" bgcolor="{tablec}" id="tablec"><font face="{font}" size="2">$eingetragen</font></td>
        <td width="20%" bgcolor="{tableb}" id="tableb"><font face="{font}" size="2">Son Download</font></td>
        <td width="30%" bgcolor="{tablec}" id="tablec"><font face="{font}" size="2">$last</font></td>
        </tr>
        <tr> 
        <td width="20%" bgcolor="{tableb}" id="tableb"><font face="{font}" size="2">Download sayisi</font></td>
        <td width="80%" bgcolor="{tablec}" id="tablec" colspan="3"><font face="{font}" size="2">$count</font></td>
        </tr>
$burl
$demo

        <tr> 
        <td width="100%" colspan="4" bgcolor="{tableb}" id="tableb"> 
        <div align="center"><font face="{font}" size="2"><b>
<a target="_blank" onclick="off('channel1');"
    onmouseout="window.status='';return true"
    onmouseover="window.status='Mein Sponsor';return true" href="http://www.webmasternetz.de"><img
    src="http://rechner1/webmasternetz/wmn7.gif" width="400" height="40" border="0"></a></h3>
    <a href="javascript:loadQuiz('portal_database.php?action=dl&fid=$fid&cid=$cid&styleid=$styleid$session')"
    onmouseout="window.status='';return true"
    onmouseover="window.status='Enter the Secret :-))';return true">DOWNLOAD ICIN BURAYI TIKLAYINIZ</a></b></font></div>
        </td>
        </tr>
        </table><br>
$database_footer
</TD></TR>
		$copyright
	</div>
	
<!-- ENDE Box -->

<td>&nbsp;&nbsp;</td><td valign="top">

<!-- START Box -->
$box2
<!-- ENDE Box -->

<!-- START Footer -->
</TD></TR></TABLE></TD></TR>
<tr>
<td width="20%" bgcolor="{tableb}" id="tableb"><div align="center"><font face="{font}" size="1">myWBB.de <b>Portal Edition Version 2.0</b> © 2001 by <b><a href="http://www.mywbb.de" target="_blank">myWBB.de</a></b></font></div></td>
</tr></TABLE></TD></TR></TABLE>
$footer
</body>
</html>
 
)';return true">DOWNLOAD ICIN BURAYI TIKLAYINIZ
das steht als download link und die farben sehen anders aus
ich glaub das klappt auch net ganz mit dem klickzwang :(
könntest du da mal nachgucken?
danke trotzdem
 
Zurück