/    Sign up×
Community /Pin to ProfileBookmark

Image map and openWindow

Hi:
I really need someone’s help here.
I’m trying to add an openWindow to an image map I created in Imageready:
Here the code:

<img src=”images/contact_nav.gif” width=”290″ height=”116″ border=”0″ usemap=”#contact_nav_Map”>
<map name=”contact_nav_Map”>
<area shape=”rect” alt=”” coords=”102,29,174,44″ href=”about_designer.html”>
</map>

Now If I want a window to open on click on the area, but with a specific size, no toolbars and so on, where would I add the javascript? In the head, orin the tag itself? Both? AHHHHHH. Help,please.

Thanks
am

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@David_HarrisonJul 11.2003 — If you create a function called openwindow() in the head section then you should just be able to put:

<area shape="rect" alt="" coords="102,29,174,44" href="about_designer.html" onclick="openwindow();return false;">
Copy linkTweet thisAlerts:
@Khalid_AliJul 11.2003 — change this line to

<area shape="rect" alt="" coords="102,29,174,44" href="about_designer.html">

<area shape="rect" alt="" coords="102,29,174,44" href="about_designer.html" onclick="return OpenWin(this)">

an in the head section of the page add the following code

<script type="text/javascript">

function OpenWin(obj){

var newWin = window.open(this.href,'newWin',"width:400,height=200,scrollbars=no,location=no");

return false;

}

</script>
Copy linkTweet thisAlerts:
@JonaJul 11.2003 — [font=arial][color=maroon]You could also try using target="_blank" to open it in a new window for those who have Javascript enabled; although, you would not be able to configurate the options.[/color][/font]

[b][J]ona[/b]
Copy linkTweet thisAlerts:
@am89authorJul 11.2003 — Great!

I'll try it out.

Thank you very much.

am
Copy linkTweet thisAlerts:
@Khalid_AliJul 11.2003 — [i]Originally posted by am89 [/i]

[B]

but with a specific size, no toolbars and so on, where would I add the javascript? In the head, orin the tag itself? Both? AHHHHHH. Help,please.



Thanks

am [/B]
[/QUOTE]


Hey Jona..I guess you missed that part..?
Copy linkTweet thisAlerts:
@JonaJul 11.2003 — [font=arial][color=green]Oops!! ?[/color][/font]

[b][J]ona[/b]
×

Success!

Help @am89 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.20,
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,
)...