/    Sign up×
Community /Pin to ProfileBookmark

Fake hyperlink

Please if anybody can show me how to make a text looks like a hyperlink.

For example if i have a string: “John, Andy, Steve” i need each comma dilimited names to be underline and when i hover over it shows a “hand” as mouse pointer.

Thank you

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@Angry_Black_ManAug 19.2007 — this is a CSS question. not that it's difficult to solve, but thats just the name of the game.
Copy linkTweet thisAlerts:
@LLIYXERauthorAug 19.2007 — this is a CSS question[/QUOTE]

Is it possible to have a JavaScript function to parse the string?
Copy linkTweet thisAlerts:
@mitchellAug 19.2007 — use this;

<a href="#null">John</a>,<a href="#null">Andy</a>,<a href="#null">Steve</a>.
Copy linkTweet thisAlerts:
@LLIYXERauthorAug 19.2007 — use this;

<a href="#null">John</a>,<a href="#null">Andy</a>,<a href="#null">Steve</a>.[/QUOTE]


I can't, the text is inside the TEXTAREA.
Copy linkTweet thisAlerts:
@doodlerAug 19.2007 — its really difficult to get what you're after if the text is inside a textarea element.

my guess the only thing close to getting what you're after is to use JavaScript to set some CSS code using a 'onmouseover' event?
Copy linkTweet thisAlerts:
@Angry_Black_ManAug 19.2007 — I can't, the text is inside the TEXTAREA.[/quote]

hahaha -- thats a really big piece of important information to leave out (:

Is it possible to have a JavaScript function to parse the string?[/quote]

if we are talking about outside of a textarea, it would be possible somehow, but it would be overly complicated process, nor would it be worth endeavoring into considering CSS could do it quicker and easier.

INSIDE a textarea, however, you can assign text formatting to everything in there, but not select portions. there is no way to "group" certain bits of information in a textarea and give it special formatting. its all or nothing.
×

Success!

Help @LLIYXER 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 4.29,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

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