Hi , I have a page that displays an image from a gallery , the image is displayed a way down the page and I want the page to automatically jump to the imgae ... normally I would go blah.com/gallery.htm#img with a matching <a name="img">anchor
but the pages have search engine friendly urls such as..
domain.com/gallery.htm/1/2
where '1' & '2' are respectively gallery and image id's and gathered via PATH_INFO , the page displayed is still gallery.htm .
I tried adding this to the output..
and variations of , but the page never jumps anywhere (though works with normal urls.
Any javascript/whatever solution that anyone can think of ?
but the pages have search engine friendly urls such as..
domain.com/gallery.htm/1/2
where '1' & '2' are respectively gallery and image id's and gathered via PATH_INFO , the page displayed is still gallery.htm .
I tried adding this to the output..
PHP Code:
<?
//prints the <img src="etc string to the page
$rets = $this->display_image( $_REQUEST['fpa_gal_img'] ) ;
$rets .='<a name="fpa_gal_img"></a>' ;
$rets .= '<script>location.href=\'#fpa_gal_img\'</script>' ;
?>
Any javascript/whatever solution that anyone can think of ?
Comment