To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > ClientSide Technologies

ClientSide Technologies Discuss HTML/CSS/Javascript, and any other client-side technologies, here.

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-04-2006, 06:35 AM   #1
hanhao
Junior Member
 
Join Date: May 2006
Posts: 16
dynamically creating a image that links to 2 other URLs

hi, i need to dymaically create a thumbnail button that when the user clicks on it, it does 2 things
so i need to call php to echo out <a href commands

1. links to another page called (page1.php)
2. popup another page in new browser called (page2.php) but set this popup in the background

but the problem is <a href only allows 1 page to be linked
how do i do the above?
can anyone show me an example of what should be written in the php echo command?

please help

- hanhao

Last edited by hanhao; 06-04-2006 at 06:58 AM.
hanhao is offline   Reply With Quote
Old 06-04-2006, 06:45 AM   #2
MarkR
Senior Member
 
Join Date: Jul 2004
Location: Oxford, England
Posts: 1,983
In order to create a popup, you'll need to use client-side Javascript. You can use the onclick event on the anchor element to trigger it. This will not interfere with the normal function of a link, so it will function normally as well as the popup.

Mark
MarkR is offline   Reply With Quote
Old 06-04-2006, 06:59 AM   #3
hanhao
Junior Member
 
Join Date: May 2006
Posts: 16
thnx MarkR for your reply

can you please show me an example of what should be written in the php echo command?
hanhao is offline   Reply With Quote
Old 06-04-2006, 07:37 AM   #4
Weedpacket
Custom User Title™
 
Weedpacket's Avatar
 
Join Date: Aug 2002
Location: Rapid Offensive Unit "Foreign Object Damage"
Posts: 19,122
Since (as noted) this is something for which Javascript is needed, and is not a PHP issue, I'm moving this thread.
__________________
On two occasions I have been asked [by Members of Parliament], "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
Weedpacket is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 05:04 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.