/    Sign up×
Community /Pin to ProfileBookmark

Anchor link problem

Hi,
ive developed a site recently which is at [url]www.bangonit.com.au/dare/home.php[/url]
I am having problems with an anchor that I have placed. From the home page, there is a link called “Click here for some samples of our work”. This us a link to the producers.php page that should go to the ‘Showreel’ anchor. It works fine on IE and Firefox on PC, but it doesn’t do its job on Safari or IE for mac.
The link is correct, and the anchor is too (view the source to check)
Any comments on why this isnt working will be apprecitated.

to post a comment
HTML

13 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceJan 30.2005 — [i]Originally posted by Cowboy Killer [/i]

[B]The link is correct, and the anchor is too...[/B][/QUOTE]

Maybe. Post just the link and post just the anchor.
Copy linkTweet thisAlerts:
@ray326Jan 30.2005 — Try adding to the anchor an id with the same value as the name.
Copy linkTweet thisAlerts:
@Cowboy_KillerauthorFeb 01.2005 — Adding id to the anchor didn't work.

The link is http://www.bangonit.com.au/dare/producers.php#showreel
Copy linkTweet thisAlerts:
@phpnoviceFeb 01.2005 — So... What makes you think that link/anchor combination isn't working? After all, the destination document isn't large enough to allow scrolling to the specified anchor.
Copy linkTweet thisAlerts:
@Cowboy_KillerauthorFeb 01.2005 — But the page scrolls to the proper place when using IE on PC or any other windows browser??
Copy linkTweet thisAlerts:
@ray326Feb 01.2005 — Actually it's a little squirrely on IE and FF on the PC, too. When I first loaded it in IE it seemed to wind up at some random place on the page. After fiddling with it awhile it started working.
Copy linkTweet thisAlerts:
@Cowboy_KillerauthorFeb 01.2005 — The box that the text displays in is a div with a fixed height. Is it because of this that the anchor doesn't work?
Copy linkTweet thisAlerts:
@phpnoviceFeb 02.2005 — To cover most browsers and versions, this:
<i>
</i>&lt;a id="showreel"&gt;
&lt;img src="images/title/showreel.gif" alt="Show-Reel" class="title" id="showreel"&gt;
&lt;/a&gt;&lt;br&gt;

should be coded as this:
<i>
</i>&lt;a name="showreel" id="showreel"&gt;&lt;/a&gt;
&lt;img src="images/title/showreel.gif" alt="Show-Reel" class="title" id="showreel"&gt;&lt;br&gt;
Copy linkTweet thisAlerts:
@Cowboy_KillerauthorFeb 02.2005 — Thanks for your help on this so far. Really appreciate it.

That still doesn't work though.

Any other suggestions?
Copy linkTweet thisAlerts:
@phpnoviceFeb 02.2005 — Nope, sorry, all I can tell you is that the traditional anchor is as follows:

<a name="showreel"></a>

and the new standard for anchors is the following (or any other HTML object with an ID setting):

<a id="showreel"></a>
Copy linkTweet thisAlerts:
@Cowboy_KillerauthorFeb 02.2005 — Righto then.

Thanks for all your suggestions anyway.
Copy linkTweet thisAlerts:
@phpnoviceFeb 03.2005 — When you find out the answer, let us know. ;-)

Cheers.
Copy linkTweet thisAlerts:
@Cowboy_KillerauthorFeb 03.2005 — will do!
×

Success!

Help @Cowboy_Killer spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...