/    Sign up×
Community /Pin to ProfileBookmark

sized popup windows for rollovers?

i can make a rollover with a regular link, but when i make a rollover and use the javacode for a popup window as the link: [COLOR=red] javascript:popUp(‘LINKNAME.html’)[/COLOR] , the rollover ends up working and it looks like a link, but it doesnt go anywhere… anyone know why? or how i can get my rollover link to link to a popup window that is sized with no scrollbar or address bar? just a window?

thanks.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@javaNoobieOct 13.2004 — Check out the [url=http://www.w3schools.com/js/tryit.asp?filename=tryjs_openallwindow]example[/url] provided at w3schools.
Copy linkTweet thisAlerts:
@Warren86Oct 13.2004 — <HTML>

<Head>

<Script Language=JavaScript>

function getLink(next){

largerView = window.open(next,"popWin","toolbar=0,status=0,menubar=0,titlebar=1,scrollbars=1,resizable=0,width=450,height=300,top=150,left=200");
}

function SwapImage(curr){

swap = event.type;
if (swap == 'mouseover'){document.getElementById(curr).src=curr+'2.jpg'}
if (swap == 'mouseout'){document.getElementById(curr).src=curr+'1.jpg'}
}


</Script>

</Head>

<Body>

<center>

<a href=javascript:getLink('1.html')><img src='A1.jpg' id='A' onMouseover="SwapImage('A')" onMouseout="SwapImage('A')" alt='This is the hover text'></a>

<a href=javascript:getLink('2.html')><img src='B1.jpg' id='B' onMouseover="SwapImage('B')" onMouseout="SwapImage('B')" alt='This is the hover text'></a>

<a href=javascript:getLink('3.html')><img src='C1.jpg' id='C' onMouseover="SwapImage('C')" onMouseout="SwapImage('C')" alt='This is the hover text'></a>

</center>

</Body>

</HTML>
×

Success!

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

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

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