help with a midification (dont know wher to ask) help with a midification (dont know wher to ask)
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

help with a midification (dont know wher to ask)

Started by kat, July 30, 2005, 05:23:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kat

im trying to use this js

<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function redirect(){
parent.location.href="pathtothumbs.php/thumbnails.php?album=1"
}
-->
</SCRIPT>
</HEAD>

<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!--
setTimeout("redirect()",0)
-->
</SCRIPT>
</BODY>


to get it to automaticaly take users to that album.
where must i insert each part of that code set to make it only redirect from the index.php page, and get no errors.

kat

answered my own question, at least it appears to be working.

i added the head portion to the template.html for my theme (basic)

and added the body portion below the footer line in index.php, the pagefooter(); at the bottom, in an echo

echo "<SCRIPT LANGUAGE='JavaScript'>
<!--
setTimeout('redirect()',0)";
-->
</SCRIPT>

replacing the "s in the js with 's