4
I was thinking about it more and thought the javascript could work...but maybe someone could assist me with some java?
Basically I had done this in a custom block before:
$current_url = $_SERVER['PHP_SELF'];
if (($current_url) == ("/localhost/index.php"))
{
('images/frontpage_random/');
function getRandomImage($dir,$type='random')
{
but then that was kind of redundant since that custom block anyhow was following the XOOPS format.
SO I was experimenting with some javascript and this is what I would like to do. Use the same thought as in the PHP argument before...Saying to only process the javascript if the page location matches ex. index.php
How would one do that?
I tried to do this, but it didn't work:
Thanks