/    Sign up×
Community /Pin to ProfileBookmark

image popup…

Hello!

I found the following script on a web-page. Is it possible to get the image that pops up to pop-up next to the pointer?

The script:

[QUOTE]

<html>
<head>

<script language=’javascript’>

window.onresize= init;

function init(){
document.all.tomrom.style.left=(document.body.clientWidth/2)-50
document.all.tomrom.style.top=’200′
document.all.tomrom2.style.left=(document.body.clientWidth/2)-50
document.all.tomrom2.style.top=’200′
}

function vis(filnavn) {
document.all.tomrom.innerHTML = “<img src='” + filnavn + “‘>”
document.all.tomrom.style.display=””
}

function skjul(){
document.all.tomrom.style.display=”none”
}

</script>
<script language=’javascript’>

function vis2(filnavn) {
document.all.tomrom2.innerHTML = “<img src='” + filnavn + “‘>”
document.all.tomrom2.style.display=””
}

function skjul2(){
document.all.tomrom2.style.display=”none”
}

</script>
<title>test</title>

</head>
<body onLoad=’init()’>
<div id=’tomrom2′ style=’position:absolute’></div>

<div id=’tomrom’ style=’position:absolute’></div>
<a href=”http://www.webpage.com” target=”_blank”>
<img border=”1″ src=’smallpicture.jpg’ onMouseOver=’vis(“bigpicture.jpg”)’ onMouseOut=’skjul()’ width=”50″ height=”97″>
</a>
</body>
</html>

[/QUOTE]

(Just cut´n´paste the script to a new html-doc…)

Great if someone could help me with this one….

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliDec 10.2003 — yes, use the mousemove event capturing, and get the cursors left and top properties and then set the image location there using CSS
Copy linkTweet thisAlerts:
@pingpongauthorDec 11.2003 — OK... is there any chance that U could help me do it?

I'm really not very good at this... :rolleyes:

Tnx...
Copy linkTweet thisAlerts:
@Khalid_AliDec 11.2003 — I won't be able to help you more then I already have during the weekdays,

email me your question and what you eant and I will see if I can work something out for you on friday night..
×

Success!

Help @pingpong 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

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