Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old April 16th, 2005, 03:29 PM
jweizenblut jweizenblut is offline
Contributing User
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Miami, Fl. US
Posts: 522 jweizenblut User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 29 sec
Reputation Power: 2
Send a message via AIM to jweizenblut Send a message via Yahoo to jweizenblut
Modify MAP Target

I have an image map that targets different files. I would like to modify it so that it opnes a new window. However, I want the new screen to be like a pop-up. No scroll-bars, no address bar and so forth. Here is the code for my Image Map.

<map name="Map">
<area shape="rect" coords="416,104,569,125" href="files/rules.doc" target="_blank">
<area shape="rect" coords="454,201,640,227" href="files/waiver.doc" target="_blank">
<area shape="rect" coords="58,104,222,125" href="muscle.htm" target="_blank">
<area shape="rect" coords="7,203,200,226" href="bodyfat.htm" target="_blank">
<area shape="rect" coords="50,304,220,324" href="beginnersampleworkout.htm" target="_blank">
<area shape="rect" coords="414,302,592,326" href="tobedetermined.htm" target="_blank">
</map>

Reply With Quote
  #2  
Old April 16th, 2005, 04:13 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: Modify MAP Target

here is a javascript function that makes opening windows easier and is customizable to your needs (Note please leave the credits in if you use the script as requested I did not write it so it is only fair.)

<script type="text/javascript">
<!--
/************************************************** **
Author: Eric King
Url: http://redrival.com/eak/index.shtml
This script is free to use as long as this info is left in
Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
************************************************** **/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.rand om()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Mat h.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPositi on+',left='+LeftPosition+',scrollbars='+scroll+',l ocation=no,directories=no,status=no,menubar=no,too lbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}
// -->
</script>

then in your area tags, put a javascript onclick event and call the function like so...

<area shape="rect" coords="416,104,569,125" href="files/rules.doc" onclick="NewWindow(this.href,'popup',600,800,'no','center') ;return false;">

the function arguments are self explainatory, but if you have any questions let me know. The "return false" after the function call prevents the main page from going anywhere when you click the area.

Reply With Quote
  #3  
Old April 18th, 2005, 01:03 AM
jweizenblut jweizenblut is offline
Contributing User
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Miami, Fl. US
Posts: 522 jweizenblut User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 29 sec
Reputation Power: 2
Send a message via AIM to jweizenblut Send a message via Yahoo to jweizenblut
RE: Modify MAP Target

Worked. Thank you!

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Modify MAP Target


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT