HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Dev Shed ForumsWeb DesignHTML Programming

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 Dev Shed Forums Sponsor:
  #1  
Old November 12th, 1999, 02:34 PM
sgisser
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I have several links on a page. Each needs its own popup window. I do not know javascript so please be gentle and as clear about placing the text into my html as you can.

Reply With Quote
  #2  
Old November 12th, 1999, 09:13 PM
sawz
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
this script will allow pop up windows, it will also allow your pop ups to have pop ups:

in the <head> section:


<SCRIPT Language="JavaScript">
var win1Open = null
var win2Open = null
function openPopUp(windowURL, windowName, windowWidth, windowHeight){
var winHandle = window.open(windowURL,windowName,"toolbar=no,scrollbars=yes,resizable=no,width=" + windowWidth + ",height=" + windowHeight)
return winHandle
}
function winClose(){ // close all open pop-up windows
if(win1Open != null) win1Open.close()
if(win2Open != null) win2Open.close()

}
function openPopUpWindow(){} // does nothing but required by JavaScript & shows in status bar
</SCRIPT>
<SCRIPT Language="JavaScript1.1"> // improved openPopUp function for Netscape 3+
function openPopUp(windowURL, windowName, windowWidth, windowHeight){
var winHandle = window.open(windowURL,windowName,"toolbar=no,scrollbars=yes,resizable=no,width=" + windowWidth + ",height=" + windowHeight)
if(winHandle != null) winHandle.focus() //brings window to top
return winHandle
}
</SCRIPT>

now for your links:

<A HREF='JAVASCRIPT URLpenPopUpWindow()' onClick='win1Open=openPopUp("your_doc.html", "popWin1", "250", "225")'>

your initial pop up will be "popWin1", if you want to have a pop up from the first pop up, then change this to "popWin2".

I hope this helps.



[This message has been edited by sawz (edited 11-12-99).]

Reply With Quote
  #3  
Old November 13th, 1999, 11:34 AM
sgisser
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Thanks but where do I place this on my HTML and where do I place the "link text" from my existing page, and where do I place the name of the pop up to be opened. I have four popups to be opened by clicking on the existing link text.

Also, I need 1 line of scrolling text for a home page. Could you possibly provide code for it?

Thank you very much for all your help,

Reply With Quote
  #4  
Old November 13th, 1999, 12:49 PM
sawz
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
on top i provided the script, this belongs in the head part of your document.


now, below this i gave you the tag to place where your links are in your code. this can be placed anywhere as long as the script is in place.

this has to be edited for your needs, ie the name of the page, and the size of the pop up.

also in the script, you can configure these pop ups to have a scrollbar or not, a toolbar or not, its highly configurable.

its hard for me to explain these things, i just know how to make them work.

take the script and linking info and play around with it, thats how i learned.

i don't know why that image showed up in the script but its supposed to be URL instead of that frowny face.

as far as a scrolling message, try www.javascripts.com
thats where i get all my stuff

Reply With Quote
  #5  
Old November 13th, 1999, 12:50 PM
sawz
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
that frowny faCE IS PIISIN ME OFF.

its suppose to be this :
plus a small o no spaces...geeez

Reply With Quote
  #6  
Old November 13th, 1999, 01:18 PM
sgisser
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
ok thanks I'll try

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > several popups fr links


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 3 hosted by Hostway