Welcome to WebmasterWorld Guest from 23.20.110.176

Forum Moderators: open

Message Too Old, No Replies

Javascript onclick links

overriding html <a href ="#none"...

     
6:54 pm on Oct 12, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 13, 2004
posts:121
votes: 0


I use anchor links with Javascript like -

<a href="#none" onclick="Javascript:displayImage('...')" target="_blank"><img ...><p>Larger Version.</a>

Sometimes without the text 'Larger Image' too.

Is this consider cloaking or bad practise?

7:41 pm on Oct 13, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 22, 2001
posts:2450
votes: 0


I'm not sure what this accomplishes, but it's definitely not cloaking.
8:58 pm on Oct 13, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 13, 2004
posts:121
votes: 0


Thanks,

I'm just searching for possibilities as I lost 90-95% of Googles traffic since early June in the 'American Whisky' update. Not commercial, but I would like to know or at least have some idea why.

The anchor link does does two things:-

1. Scroll to the top of page in this case because there is no valid <a name="none"> anchor on the page, if there was a valid anchor name link in IE it would bring it to the top of page if it was off screen.

2. Load a pop-up window with the larger image, when you click on the image or the text 'larger image'. Just an option if you want a bigger picture without downloading it onto the page.

3:31 am on Oct 14, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 22, 2001
posts:2450
votes: 0


By "American Whiskey" I'm guessing you mean the "Bourbon" update :)

I don't think the javascript would cause you problems with Google.