View Full Version : Resolved Stop scroll upon page load
theremotedr
06-01-2016, 06:29 PM
Hi,
Here is the page in question http://www.theremotedoctor.co.uk/jazz.html?scrollto=secondary-navigation
When you first visit this page it scrolls to a specific point.
When you visit this page however it doesnt scroll, which is correct http://www.theremotedoctor.co.uk/honda_car_key_remotes.html
I am trying to locate in the code where the culprit is that is making the fir link above scroll upon page load.
Any help would be great as ive now looked for 20 minutes and dont see it,even though i must of put it there at some point.
mlegg
06-01-2016, 06:48 PM
I'm not sure if you noticed but you have a closing script tag, but no open script above it.
</script>
<!-- made by www.metatags.org -->
styxlawyer
06-01-2016, 06:51 PM
You are asking the page to scroll by adding a parameter in the URI:
http://www.theremotedoctor.co.uk/jazz.html?scrollto=secondary-navigation
If you remove the parameter from the URI, the page doesn't scroll:
http://www.theremotedoctor.co.uk/jazz.html
theremotedr
06-02-2016, 08:47 AM
Hi,
I have checked the page in question again but i dont see anything like the following within the code ?
http://www.theremotedoctor.co.uk/jazz.html?scrollto=secondary-navigation
styxlawyer
06-02-2016, 09:09 AM
It's not in the page, it's the link you use to call the page that matters! Your second example page behaves in exactly the same way as the first:
Without scrolling:
http://www.theremotedoctor.co.uk/honda_car_key_remotes.html
With scrolling:
http://www.theremotedoctor.co.uk/honda_car_key_remotes.html?scrollto=secondary-navigation
theremotedr
06-02-2016, 09:26 AM
Ive done a search through all the files for this site using the text below but results come back "Zero" ?
theremotedoctor.co.uk/jazz.html?scrollto=secondary-navigation
styxlawyer
06-02-2016, 12:42 PM
The full link may not be there, try searching for just "scrollto". That's the part of the link which is causing the problem.
styxlawyer
06-02-2016, 01:59 PM
If it helps, this is a random selection of lines from your home page:
<li><a href="#">KEYS & REMOTES</a>
<ul>
<li class="current"> <li><a href="karaudi.html?scrollto=selection">AUDI</a>
<li><a href="karbmw.html?scrollto=selection">BMW</a></li>
<li><a href="karfiat.html?scrollto=selection">FIAT</a></li>
<li><a href="karford.html?scrollto=selection">FORD</a></li>
<li><a href="#">HONDA</a>
<ul class="sub-menu">
<li><a href="karaccord.html?scrollto=selection">ACCORD</a></li>
<li><a href="karcivic.html?scrollto=selection">CIVIC</a></li>
<li><a href="karcrv.html?scrollto=selection">CR-V</a></li>
<li><a href="karfrv.html?scrollto=selection">FR-V</a></li>
<li><a href="karhrv.html?scrollto=selection">HR-V</a></li>
<li><a href="karjazz.html?scrollto=selection">JAZZ</a></li>
<li><a href="karstream.html?scrollto=selection">STREAM</a></li>
<li><a href="kars2000.html?scrollto=selection">S2000</a></li>
<li><a href="karotherkeys.html?scrollto=selection">OTHER KEYS</a></li>
</ul>
</li>
<li><a href="karjaguar.html?scrollto=selection">JAGUAR</a></li>
<li><a href="karlandrover.html?scrollto=selection">LAND ROVER</a></li>
<li><a href="karlexus.html?scrollto=selection">LEXUS</a></li>
<li><a href="karmazda.html?scrollto=selection">MAZDA</a></li>
<li><a href="karmercedes.html?scrollto=selection">MERCEDES</a></li>
<li><a href="karnissan.html?scrollto=selection">NISSAN</a></li>
<li><a href="karrangerover.html?scrollto=selection">RANGE ROVER</a></li>
<li><a href="karsmartcar.html?scrollto=selection">SMART CAR</a></li>
<li><a href="karsuzuki.html?scrollto=selection">SUZUKI</a></li>
<li><a href="kartoyota.html?scrollto=selection">TOYOTA</a></li>
<li><a href="karvolkswagen.html?scrollto=selection">VOLKSWAGEN</a></li>
</ul>
</li>
theremotedr
06-03-2016, 11:28 AM
Hi,
Thanks for all the input but ive found it.
I have spent ages looking through my site BUT it wasnt there.
I have on my taskbar an icon called Morning Coffee.
When i click on this each day in its database is a selected list of my urls for my site.
One of them being theremotedoctor.co.uk/jazz.html?scrollto=secondary-navigation
So ive now changed it to theremotedoctor.co.uk/jazz.html and now sorted.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.