Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Bidding Directory   World's Leading Outsourcing Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 03-08-2008, 03:22 PM   #1 (permalink)
Contributing Member
 
Join Date: 01-18-08
Posts: 141
iTrader: 0 / 0%
Latest Blog:
None

madcaptains is liked by many
problem to open windows with link.

Hi,
I made a tool that I want to give away to various aquarium related website. It open as a pop up when we clic on the link or image. Everything is fine up to here.

Now my problem:
On this pop up, I link to various website. I would like those link to open in a full page but unfortunatly, the new page is allways the same size as the pop up is.

You can find a link to this pop up on this page: http://www.aquariumobsession.com/fishdiseases
(the link is call "complete fish disease diagnosis")

Here is the code I use for that pop up
<a href="http://www.aquariumobsession.com/diseases_diagnosis/diseasesdiagnosis" onclick="window.open('http://www.aquariumobsession.com/diseases_diagnosis/diseasesdiagnosis','popup','width=520,height=610,s crollbars=no,resizable=no,toolbar=no,directories=n o,location=no,menubar=no,status=no,left=0,top=0'); return false">Complete Fish Diseases Diagnosis</a>

And here is the code I use on this pop up to link to other website:
<a href="http://www.aquariumobsession.com/" onclick="window.open('http://www.aquariumobsession.com/','popup','width=1520,height=610,scrollbars=yes,re sizable=yes,toolbar=yes,directories=yes,location=y es,menubar=yes,status=yes,left=0,top=0'); return false">NAME OF THE WEBSITE</a>

Whatever the width and height I ask for, it always open the same size as the first one.

How could I fix this?
madcaptains is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 03-08-2008, 04:38 PM   #2 (permalink)
Contributing Member
 
lordspace's Avatar
 
Join Date: 05-30-06
Location: Canada
Posts: 445
iTrader: 0 / 0%
lordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nice
Send a message via ICQ to lordspace Send a message via Skype™ to lordspace
Why don't you just use target="_blank" of <a ...></a
lordspace is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-08-2008, 05:21 PM   #3 (permalink)
Contributing Member
 
corneo's Avatar
 
Join Date: 03-06-08
Posts: 520
iTrader: 0 / 0%
Latest Blog:
None

corneo is liked by somebodycorneo is liked by somebodycorneo is liked by somebodycorneo is liked by somebodycorneo is liked by somebody
Quote:
Originally Posted by lordspace View Post
Why don't you just use target="_blank" of <a ...></a
ditto
corneo is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-08-2008, 06:35 PM   #4 (permalink)
Contributing Member
 
Join Date: 01-18-08
Posts: 141
iTrader: 0 / 0%
Latest Blog:
None

madcaptains is liked by many
You mean like this:
<a href="http://www.aquariumobsession.com/" target="_blank">Votre lien</a>

Instead of this:
POWERED BY<a href="http://www.aquariumobsession.com/" onclick="window.open('http://www.aquariumobsession.com/','popup','width=1520,height=610,scrollbars=yes,re sizable=yes,toolbar=yes,directories=yes,location=y es,menubar=yes,status=yes,left=0,top=0'); return false">Aquarium Obsession</a>

I still have the same problem. the new page open with the same size as the pop up.
__________________
Fish-Med Aquarium fish diseases diagnosis and medication
madcaptains is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-09-2008, 12:12 AM   #5 (permalink)
Contributing Member
 
lordspace's Avatar
 
Join Date: 05-30-06
Location: Canada
Posts: 445
iTrader: 0 / 0%
lordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nice
Send a message via ICQ to lordspace Send a message via Skype™ to lordspace
Yes.
lordspace is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-09-2008, 04:10 AM   #6 (permalink)
Contributing Member
 
corneo's Avatar
 
Join Date: 03-06-08
Posts: 520
iTrader: 0 / 0%
Latest Blog:
None

corneo is liked by somebodycorneo is liked by somebodycorneo is liked by somebodycorneo is liked by somebodycorneo is liked by somebody
Do you have this command on the page that is giving you problems (or some command like this?)

Code:
newwindow=window.open("/popup2.html","http://www.sitename.com/popup2.html","width=400,height=200")
If you do, than every page that opens from your page will open in that size. I don't know if you can over ride it.

(it's a pop-up command script. Java)
corneo is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-09-2008, 05:13 AM   #7 (permalink)
Contributing Member
 
Join Date: 01-18-08
Posts: 141
iTrader: 0 / 0%
Latest Blog:
None

madcaptains is liked by many
The code for my pop up is the following:
<a href="http://www.aquariumobsession.com/diseases_diagnosis/diseasesdiagnosis" onclick="window.open('http://www.aquariumobsession.com/diseases_diagnosis/diseasesdiagnosis','popup','width=520,height=610,s crollbars=no,resizable=no,toolbar=no,directories=n o,location=no,menubar=no,status=no,left=0,top=0'); return false">Complete Fish Diseases Diagnosis</a>

on the pop up, to make a link, I am using the same code but with different width and height:
<a href="http://www.aquariumobsession.com/" onclick="window.open('http://www.aquariumobsession.com/','popup','width=1520,height=610,scrollbars=yes,re sizable=yes,toolbar=yes,directories=yes,location=y es,menubar=yes,status=yes,left=0,top=0'); return false">Aquarium Obsession</a>
__________________
Fish-Med Aquarium fish diseases diagnosis and medication
madcaptains is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-09-2008, 05:20 AM   #8 (permalink)
Contributing Member
 
corneo's Avatar
 
Join Date: 03-06-08
Posts: 520
iTrader: 0 / 0%
Latest Blog:
None

corneo is liked by somebodycorneo is liked by somebodycorneo is liked by somebodycorneo is liked by somebodycorneo is liked by somebody
try this site. I get codes from it all the time. Maybe it will help.
http://www.javascriptkit.com/
corneo is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-09-2008, 06:31 PM   #9 (permalink)
Contributing Member
 
Join Date: 01-18-08
Posts: 141
iTrader: 0 / 0%
Latest Blog:
None

madcaptains is liked by many
It work! Thank you!

One more question:
This pop up generator does not give me the option to use an image to link instead of a text link.

How could I use an image in that code?

<script type="text/javascript">

//JK Popup Window Script (version 3.0)- By JavaScript Kit (http://www.javascriptkit.com)
//Visit JavaScriptKit.com for free JavaScripts
//This notice must stay intact for legal use

function openpopup(popurl){
var winpops=window.open(popurl,"","width=,height=,tool bar,status,menubar,resizable")
}
</script>

<a href="javascriptpenpopup('http://www.google.com')">Click here to open window</a>
__________________
Fish-Med Aquarium fish diseases diagnosis and medication
madcaptains is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-10-2008, 01:43 AM   #10 (permalink)
Contributing Member
 
corneo's Avatar
 
Join Date: 03-06-08
Posts: 520
iTrader: 0 / 0%
Latest Blog:
None

corneo is liked by somebodycorneo is liked by somebodycorneo is liked by somebodycorneo is liked by somebodycorneo is liked by somebody
I don't understand. Pop ups open html. put what you want on the html. or if you use a picture that you want to open a link put:

<a href="http://www.site.com/" target="_blank"><img src=http://www.site.com/banners/badkid.jpg border="0" /></a>

the "_blank" makes it open a new page.
corneo is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-10-2008, 04:44 AM   #11 (permalink)
Contributing Member
 
Join Date: 01-18-08
Posts: 141
iTrader: 0 / 0%
Latest Blog:
None

madcaptains is liked by many
Quote:
Originally Posted by corneo View Post
if you use a picture that you want to open a link put:
<a href="http://www.site.com/" target="_blank"><img src=http://www.site.com/banners/badkid.jpg border="0" /></a>

the "_blank" makes it open a new page.
Thank you. this is what I was loonkig for.
__________________
Fish-Med Aquarium fish diseases diagnosis and medication
madcaptains is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to open all windows maximized all the time on every applications and folders? pataya Computers & Internet 13 11-05-2006 01:58 PM
I have a link problem Beyonder Computers & Internet 8 08-30-2006 11:25 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 12:53 PM.
© Copyright 2008 V7 Inc