Jump to content

[SOLVED] simple problem(i think)


thewooleymammoth

Recommended Posts

i have a page that i need to focus on the the image dynamcially

 

essentually the code is liek this

 


foreach ($list_of_images as $image)
{
$selectimage=$_GET['image'];
if ($image == $selectimage)
{
//i want the the page to automatically load with this at the top of the screen becuase there could potentially be a huge list of images and scrolling down each time gets annoying
echo " <img src='$image'><br>need page to focus here on load<br>";
}
else {
echo "<a href='image.php?image='$image'>other image titles<br>";
}
}

Ive been searching for a while and cant find the code or a tutorial  to do this, im not really interested in learning js but im told js is the best way to do this so if anyone can just tell me the code or something that would be AWESOME

 

an example of the page im trying to improve is

 

http://fatalinjury.org/vf.php?name=5wooley4@gmail.com

 

notice the scrolling down the page is gets very annoying

 

Link to comment
Share on other sites

foreach ($list_of_images as $image)
{
    $selectimage=$_GET['image'];
    if ($image == $selectimage)
    {
    //i want the the page to automatically load with this at the top of the screen becuase there could potentially be a hugelist  of  images and scrolling down each time gets annoying
    echo " <img src='$image' name='open'><br>need page to focus here on load<br>";
    }
else {
echo "<a href='image.php?image=$image#name=open'>other image titles<br>";
       }
}

 

so the code should look like this?

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.