How do I link this javascript:
for(i=0; i<document.links.length; i++){
if(document.links[i].search.indexOf(“S…
document.write(‘Ask seller a question‘);
break; }}
so when it is clicked on single word in a sentence on my wepage it works
thank you
How do I link this javascript:
for(i=0; i<document.links.length; i++){
if(document.links[i].search.indexOf(“S…
document.write(‘Ask seller a question‘);
break; }}
so when it is clicked on single word in a sentence on my wepage it works
thank you
Javascript, Linked, Sentence, Single, This, Word
This entry was posted on Sunday, November 8th, 2009 and is filed under Javascript Questions. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS) ^
Powered by Yahoo! Answers
#1 by boacuts2 at November 8th, 2009
You need to surround the code you listed in a function block:
function functionName() {
… Your code
}
Then in your html – type:
The word to be clicked
Some good info on http://www.cognize.co.uk
#2 by Anonymous at November 8th, 2009
hahaha, try writing your own, “ask a question”, “ask seller a question” – that sounds familiar, isn’t there a copyright law or something against stealing other peoples code?
#3 by Jonathan at November 9th, 2009
Did you nick this from eBay? Tut tut.