Parašė ___· 2007 Lap. 28 14:11:25
#10
echo "<SCRIPT>
var imageURL = \"nespalvotas.png\";
if (document.images) {
var clock = new Image();
clock.src = \"nespalvotas.png\";
var cup = new Image();
cup.src = \"spalvotas.png\";
}
function changeImage() {
if (document.images) {
if (imageURL == \"spalvotas.png\") imageURL = \"nespalvotas.png\";
else imageURL = \"spalvotas.png\";
document.sms.src = imageURL;
}
}
</SCRIPT>";
echo "<A href=\"javascript:show_hide(ShowHide1)\"><IMG SRC=\"nespalvotas.png\" NAME=\"sms\" onClick=\"changeImage();\"></a><div id='ShowHide1'>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=2'>Tekstas</a><br>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=3'>Tekstas</a><br>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=15'>Tekstas</a><br>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."viewpage.php?page_id=4'>Tekstas</a><br>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=9'>Tekstas</a><br>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."viewpage.php?page_id=6'>Tekstas</a><br>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."viewpage.php?page_id=56'>Tekstas</a><br>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."articles.php?cat_id=2'>Tekstas</a><br><br>";
echo "</div>";
echo"<script>show_hide(ShowHide1)</script><br>";
Kodas ilgokas, bet tikrai veikia :)
Redagavo ___· 2007 Lap. 28 14:11:34