Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

popups

Status
Not open for further replies.

perlkid

Programmer
Mar 9, 2000
35
US
<br>
Hi Java people,<br>
<br>
I need a java script that dispays a popup window when you click on a link and the window can be anywhere on the page specified, can be any size, and just be a window with no navigational bars, status bar, or even the blue band at the top that says the address of the page.<br>
<br>
Thanks a lot,<br>
<br>
perlkid<br>
<br>
Also if possible it would close after a certain lenth of time.
 
This is a bit complex so I will redirect you to here: <A HREF=" TARGET="_new">This page will explain what you need. <p>REH<br><a href=mailto:hawkdogg@crosswinds.net>hawkdogg@crosswinds.net</a><br><a href= by Linux</a><br>Learn Linux and Leave out the Windows :)
 
<br>
Ok, <br>
<br>
I went there and the popup works but it's a form and I need a link to be the trigger. But that is very close to what I want. Would you know how to modify it? If I had to I could find a way to use a form but then my problem is getting rid of the navigation buttons, status bar, and the blue band. I'll use what I can get so any help would be greatly appreciated.<br>
<br>
Thanks,<br>
<br>
perlkid
 
<i>&lt;script language=JavaScript&gt;<br>
&lt;!--<br>
function openIt(URL)<br>
{<br>
window.open(&quot;otherwindow&quot;, URL, &quot;noscroll&quot;); document.setTimeout(</i>number of seconds to leave the window open<i>, 'window.otherwindow.close();');<br>
};<br>
//--&gt;<br>
&lt;a href=# onClick=&quot;openIt('<A HREF=" TARGET="_new"> return false;&quot;&gt;Click Here&lt;/a&gt;</i><br>
<br>
Does this help any? <p>-Robherc<br><a href=mailto:robherc@netzero.net>robherc@netzero.net</a><br><a href= shared.freeservers.com/searchmaster.html>SearchMaster Interface...11-in-1</a><br>Wanting to learn Assembler; please e-mail me any tutorials or links for it that are useful to you :)
 
To get a window to do that, I think that you will need to use java or something like that.<br>
<br>
Javascript can provide a window with:<br>
a specifyed size, and location,<br>
and you can controll most of the attributes, but the <i>title bar</i> cannot be removed.<br>
<br>
If you mean the address bar, then, javascript is all you need.<br>
<br>
this will display a window with nothing but the titlebar:<br>
the window has a width of 455, a height of 455, top position of 45 (from the top of the screen), and a left position of 34 (again from the left of the screen)<br>
<br>
var newTempWindow=window.open('_url_here_','status=no,resizable=no,width=455,height=455,top=45,left=34')<br>
<br>
Hope this helps. <p>theEclipse<br><a href=mailto: > </a><br><a href=robacarp.webjump.com>robacarp.webjump.com</a><br>
 
try this:<br>
<br>
&lt;A href='javascript:popUpWindow(&quot;/news/2000-03-11/11argexport.htm&quot;)'&gt;<br>
ver artículo<br>
&lt;/A&gt;<br>
<br>
&lt;script language=&quot;JavaScript&quot;&gt; <br>
&lt;!--<br>
function popUpWindow(URL)<br>
{<br>
window.open(URL,null,&quot;height= 400,<br>
width=500, scrollbars=2,<br>
status=no,toolbar=no,menubar=no,location=no&quot;);<br>
}<br>
// --&gt;<br>
&lt;/script&gt; <br>
<br>
<br>
<br>
check it out at <A HREF=" TARGET="_new"> I'd made it myself,
 
Ah, sorry, I misread your request. I saw Netscape do something like this and I thought it was pretty cool so I tried to look at the code, but it was like 5 pages long. I'll figure this one out sooner or later, just give me a little time (I no longer know where that site is anymore). <p>REH<br><a href=mailto:hawkdogg@crosswinds.net>hawkdogg@crosswinds.net</a><br><a href= by Linux</a><br>Learn Linux and Leave out the Windows :)
 
Perlkid-<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;Have any of our suggestions provided an ample solution yet?<br>
&nbsp;&nbsp;&nbsp;&nbsp;Or could you give us a few more specs so we can better customize our answers to your need? <p>-Robherc<br><a href=mailto:robherc@netzero.net>robherc@netzero.net</a><br><a href= shared.freeservers.com/searchmaster.html>SearchMaster Interface...11-in-1</a><br>Wanting to learn Assembler; please e-mail me any tutorials or links for it that are useful to you :)
 
<br>
Thanks guys, <br>
<br>
I've been so busy I didn't have a chance to check the forum sooner and I still am busy. So really quickly I would like to thank you all very much and let you know that I'll make good use out of the code. Sorry for the delay and the short expression of gratitude.<br>
<br>
Thanks a lot,<br>
<br>
perlkid
 
You're probably done with this forum, but I wanted to let you know that what you are thinking of has to do with the layer's position being relevant to the screen. I think you can capture a screen position with the property <i>screenX</i> and <i>screenY</i>, but I can't remember exactly. I will get back to you (the one that Netscape had was much more complex. <p>REH<br><a href=mailto:hawkdogg@crosswinds.net>hawkdogg@crosswinds.net</a><br><a href= by Linux</a><br>Learn Linux and Leave out the Windows :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top