html code for opening a new constrained window  | | |
March 14th, 2008, 01:54 PM
|
#1 (permalink)
| | Ultimate Member
Join Date: Jan 2003
Posts: 2,270
| html code for opening a new constrained window
I am working in frontpage and I want a link to open a page in a new window. But i want the window to be constraind with certain dimensions no scrolling and no resizing. What's the code? |
| |
March 14th, 2008, 02:01 PM
|
#2 (permalink)
| | ska7ing away.....
Join Date: Nov 2003 Location: with the cat
Posts: 7,761
| |
| |
March 14th, 2008, 02:09 PM
|
#3 (permalink)
| | Ultimate Member
Join Date: Jan 2003
Posts: 2,270
|
i want it to open up more like a popup add...thanks though |
| |
March 14th, 2008, 02:24 PM
|
#4 (permalink)
| | 分かりますか。
Join Date: Feb 2006 Location: Gville, FL
Posts: 7,156
|
Last edited by carl33p : March 14th, 2008 at 02:28 PM.
|
| |
March 14th, 2008, 03:29 PM
|
#5 (permalink)
| | Ultimate Member
Join Date: Jan 2003
Posts: 2,270
|
I dont mind just html I think I may prefer it. The link is on an image map so I'm having trouble figureing out how to put the code in the link box. |
| |
March 14th, 2008, 04:42 PM
|
#6 (permalink)
| | Ultimate Member
Join Date: Jan 2003
Posts: 2,270
|
is it possible to set code on the page I'm linking to. rather than puting the code on the link? |
| |
March 14th, 2008, 05:16 PM
|
#7 (permalink)
| | 分かりますか。
Join Date: Feb 2006 Location: Gville, FL
Posts: 7,156
|
This may be a good chance for you expand your knowledge. Hopefully you are somewhat familiar with javascript or basic programming. If not, its still pretty easy to grasp. http://www.pageresource.com/jscript/jlinktut.htm Quote:
<SCRIPT language="JavaScript">
<!--hide
function newwindow()
{
window.open('jex5.htm','jav','width=300,height=200,resizable=y es');
}
//-->
</SCRIPT>
| Here you are making a function. Your function is called newwindow(). When you call newwindow() it will execute what is in between { }. Which is where you will replace everything I have in bold with your own material. Put this in the <head> section.
Then go to your image map. Use Quote: |
<A HREF="javascript:newwindow()" >
| Word for word.
Easy as pie. |
| |
March 15th, 2008, 11:17 AM
|
#8 (permalink)
| | Ultimate Member
Join Date: Jan 2003
Posts: 2,270
|
Thats awesome it's like being in school for web design...thanks...Is there ways i can tweak it to put more than one link like that on a page? |
| |
March 15th, 2008, 05:19 PM
|
#9 (permalink)
| | Super F@D Folder
Join Date: Jun 2004
Posts: 5,083
|
look at how you create variables. then you can pass the name of the page as a variable to the function.  |
| |
March 15th, 2008, 07:05 PM
|
#10 (permalink)
| | 分かりますか。
Join Date: Feb 2006 Location: Gville, FL
Posts: 7,156
| Quote:
Originally Posted by thePh@r@oh Thats awesome it's like being in school for web design...thanks...Is there ways i can tweak it to put more than one link like that on a page? | Hmmmm, asking a question like that means you dont really understand what is going on here.. 
Start here and learn exactly what you are doing. They do a great job of explaining the basics.
Ask questions here. I dont do web design or use javascript, so Im happy to answer questions b/c that means I go look it up and learn something new.
Try to recognize what parts of the syntax are static and dont change, and what words you can name yourself. For example: Quote:
<HEAD>
<TITLE>My World</TITLE>
<SCRIPT language="JavaScript">
function cool()
{
..........
}
function newtext()
{
.....
}
function moretext()
{
......
}
</SCRIPT>
</HEAD>
| Everything thing in Blue, YOU can name yourself. Give em any name you want. http://www.pageresource.com/jscript/index.html |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |