How to imitate links in Javascript ?


Back to javascript.


*e3a1dd    (2009-08-28)
How to imitate links in Javascript ?

Hi,

It is possible to imitate links like this one :

<a href="http://www.adobe.com">Adobe</a>


... with this small piece of code :

<a onclick="window.open('http://www.adobe.com')"><u>Adobe</u></a>


Many websites now use this technique to avoid losses of link juice with rel="nofollow".

Now here is my question : do you know how to make the mouse like if it was over a real link ?

Thanks.



(more options below)

*vureci    (2012-05-14 08:57:40)
How to imitate links in Javascript ?

You could try this one using css. For example:
The cursor property is supported in all major browsers.

Note: Opera 9.3 and Safari 3 do not support URL values.

Note: The value "inherit" is not supported in IE7 and earlier. IE8 requires a !DOCTYPE. IE9 supports "inherit".



<a onclick="window.open('ht*p://www.adobe.com')" style="cursor:pointer;"><u>Adobe</u></a>

www.w3schools.com/cssref/pr_class_cursor.asp

Some CSS cursor attributes:
crosshair: The cursor render as a crosshair
default: The default cursor
pointer: The cursor render as a pointer
progress: The cursor indicates that the program is busy (in progress)
wait: The cursor indicates that the program is busy
inherit: Specifies that the value of the cursor property should be inherited from the parent element


See also


ficgs
More websites

You must register to see these links, as this is a collaborative page, then you may change the order of the links by clicking the icons before the titles.



admin
Other websites

The following links might be less relevant, please change their ranks if you find them useful.


 imitating java hover class with javascript [Archive] - CodingForums.com
codingforums > archive/index.php/t 17575
  1. they may function as links but only an anchor tag will respond to
  2. Even simpler than basic event handlers, why not just use CSS? a
 Handwriting Imitation. Shareware Download - JavaScript, Scripts and Programs - Add dynamics and realness on your pages
sourcecodeonline > details/handwriting imitation

Art Dhtml is a multi-platform compatible script that allows your...
All files and free downloads are copyright of their respective...

 Links & JavaScript Living Together in Harmony | evolt.org
evolt > article/Links and JavaScript Living Together in Harmony/17/20938

 imitating java hover class with javascript - CodingForums.com
codingforums > s

as far as your ID problem, you can only use one value, one time...

 Kids Imitate Saddam's Televised Hanging Death - ABC News
abcnews.go > Health/story?id=2773792&page=1

Watching the televised hanging of Saddam Hussein may have been a key...
Everything you need to know about mind and mood from the nation's top...

 EUdict | Croatian-French dictionary | Options
eudict > options.php?lang=crofre&word=to%20play,%20sport,%20imitate,%20bante

There is version of EUdict optimized for mobile devices like iPhone...

 How do I make JavaScript links?
tech faq > javascript links.shtml

 BBC SPORT | Boxing | Jones Jr can imitate Ali - Haye
news.bbc > sport2/hi/boxing/7715474.stm

Calzaghe is up there with the best Britain has produced since the...
It is the 27-year-old Londoner's first fight at that level and he...

 Julia Raeside on how life might continue to imitate art for dear Jennifer Aniston | Life and style | The Guardian
guardian > lifeandstyle/2009/jun/16/jennifer aniston baster pitt

How life might continue to imitate art for dear...
William's Old University Friend Jules: the third person in this royal...

 [TYPO3-hci] Innovate - don't imitate
lists.netfielders > pipermail/typo3 team hci/2006 October/001201

 Teen Sets Self On Fire To Imitate YouTube Clip - Orlando News Story - WESH Orlando
wesh > news/20366679/detail

A Deltona teenager was hospitalized on Wednesday after suffering...
Protect your health and learn about the symptoms of eight common STDs...
Don’t get suckered into spending more cash than is necessary to fix...

 Science Centric | News | Imitation promotes social bonding in primates
sciencecentric > news/article.php?q=09081416 imitation promotes social bonding p

 IngentaConnect Experience-based imitation using RNNPB
ingentaconnect > content/vsp/arb/2007/00000021/00000012/art00002

Pressing the buy now button more than once may result in multiple...

 Does your toddler imitate scenes from television or movies?
babycenter > toddler/development/socialemotional/imitate scenes from tv or movie

Does your toddler imitate scenes from television or the...
// Omniture click-tracking for show/hides var Omniture = new...

 Using HTML to Imitate XFBML - Facebook Developer Wiki
wiki.developers.facebook > index.php/Using HTML to Imitate XFBML

 Community Fellowship Church in West Chicago, IL - Imitate Christ, Tell His Story, Relationally Engage Our Neighbor For the Glory of God - Email This P...
commfell > emailpage.asp?pg=pagenotfound&vars=404

// Final Menu Separator } with(milonic=new...
Please enter the form validation code you see...

 Myriam Faris denies imitating Shakira | AllArabStars.com .. Your first online source for All Arab Stars
allarabstars > news/2006/12/25/myriam faris denies imitating shakira

?†?§?†?³?? ???­?„?… ?¨?????„?… ?§?³???¹?±?§?¶??...
?†?§?†?³?? ?¹?¬?±?… ???³???¹?¯ ?„?€ ?¬?ˆ?„?©...
???§?±?³ ?ƒ?±?…: ?¥?³???†?³?®?ˆ?§ ?„?ˆ?†??...

 Fake Dummy Security Surveillance Cameras, Decoy, Imitation Camera
specialtyalarms > site/1313932/page/508965

Large Dome Dummy Camera in Outdoor Housing w/ LED Light,...
Deluxe Dummy Camera in Outdoor Housing w/ LED light,...

 Tutorial Dog - Photoshop Tutorials, CSS, Mac OS X & Javascript
tutorialdog

 JavaScript Scripts: Handwriting imitation
devscripts > script/view/1303/Handwriting imitation

Give your Script the exposure it deserves! Your script will be...
Your script holds one of the top positions and seen first when...
Banner Advertisement to give you a channel to present your...

 TOKYOMANGO: British girls imitate ganguro gyaru trend
tokyomango > tokyo mango/2009/07/british girls imitate ganguro gyaru trend

New toy simulates giant fireworks inside the house...
Sometimes I try to explain Japanese culture on CNN, BBC, CBC, WSJ,...
Beautiful short film on motorcycle maker Shinya...

 Kathie Lee Gifford Imitates Al Roker Imitating Chinese Person, Adds Helpful Squinting Gesture! - Kathie Lee Gifford - Gawker
gawker > 5041366/kathie lee gifford imitates al roker imitating chinese person a

 jQuery Tutorials for Designers
webdesignerwall > tutorials/jquery tutorials for designers

 Ajax file upload with pure JavaScript
dzone > links/ajax file upload with pure javascript

Web Application - Automatically Show Login Page After Session...
How do senior developers keep up to learning as much as a...
SolutionsIQ Helps PowerAdvocate Reduce Time to Market Through...

 Resume Writing and Updating: Examples to Imitate, Common Mistakes to Avoid: Encyclopedia of Urban Ministry | UrbanMinistry.org: Sermons, Podcasts, MP3...
urbanministry > wiki/resume writing and updating examples imitate common mistake

Transitions: Retiring From Your Organization Repostitions for Full...
Angie West: Twists and Turns of Employment Laws: AGRM 2005...

 Life imitates Bart: 7-11 now a Kwik-E-Mart - The Denver Post
denverpost > business/ci 6278123

 Immature poets imitate, mature poets steal. Philip Massinger | Dictionary of Quotes
dictionary quotes > immature poets imitate mature poets steal philip massinger

It is to be noted that when any part of this paper appears dull there...
Life has to be given a meaning because of the obvious fact that it...
Poets and heroes are of the same race, the latter do what the former...

 Skin cells altered to imitate stem cells in embryo-free way | The Japan Times Online
search.japantimes > cgi bin/nn20071122a6

Researchers from Kyoto University and the University of...
Here's your resource for locating the educational institutions and...

 Javascript super logic input lessons for Neural network
clickenfind > pidmass/brain

0)//find destination, make new synapse from age4 to age2 or...
0: display var box='a'//use instruction message window a var...
Following the general physical evolutionary goal of increasing...

 outlook program_addins C# ComAddIn: Imitate Drag & Drop
eggheadcafe > forumarchives/outlookprogram addins/Feb2006/post25943259.asp

 Wood-imitate plastic flooring, yjs charring environmental floor Exporter & Manufacturer,Guangdong You Jin Song Floor Manufacturing Co., Ltd.,Hesha...
tradeindia > Seller 2185227 2650955 264 TL/Flooring/Guangdong You Jin Song Floor



Response  
 

Guest name   (option)     Register
Please sum : 6697 + three  




Trackbacks : If you talked about this article in your blog or website, you may instantly get a backlink 
There's no trackback at the moment.