/    Sign up×
Community /Pin to ProfileBookmark

i am experimenting with text only links and i am trying to get a text link that flips to different text, but 2 difficulties – can anyone help me out – no. 1 the flip is not permenant, as when you roll the mouse over the newly created text, ie6 interprets it as a mouseout for some reason??? no. 2 the hyperlink itself dosent seem to function at all

<div style=”position: absolute; top:10px; left:10px; width:100px; height:25px; border:2px solid red; background: white” id=”div1″ >original text</div>

<a href=”yahoo.com”
onmouseover=”document.getElementById(‘div1’).innerHTML= ‘new text’; return false;”
onmouseout=”document.getElementById(‘div1’).innerHTML= ‘Original Text’; return false;”>
<DIV style=”position: absolute; top:10px; left:10px; width:100px; height:25px; border:2px solid red”></DIV>
</a>

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@FangMay 06.2003 — Doe it simpler, no divs needed:

<a id="a1" href="http://www.yahoo.com/" style="position: absolute; top:10px; left:10px; width:100px; height:25px; border:2px solid red;"

onmouseover="document.getElementById('a1').innerHTML= 'new text'; return false;">Original Text</a>

If you want the text change to be permanent, don't add a mouseout.

Your link was for a local document. Use the full URL for a site.
Copy linkTweet thisAlerts:
@bobmurphyauthorMay 06.2003 — thanks fang

bob

[I]anyone who gives even so much as a cold drink of water to the least of my followers will certainly not loose his reward in the kingdom of heaven -- J.C.[/I]
×

Success!

Help @bobmurphy 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 5.18,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

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