|
|
|
|
![]() ![]() |
Sep 28 2005, 05:42 AM
Post
#1
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 178 Joined: 26-June 05 Member No.: 8,699 |
Hey guys im making a site and i was wondering how do i make it so that it opens into a specific size? not a link from my site but the actual index file. I found this site and i think its on the right track but dint tottally work for what im doing because they just tellyou how to open a link in a specific size and not your actual index file any help would be awesome
link: http://www.mcli.dist.maricopa.edu/tut/tut27c.html |
|
|
|
Sep 28 2005, 07:38 AM
Post
#2
|
|
|
Trap Grand Marshal Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,205 Joined: 25-March 05 Member No.: 4,883 |
I don't think there's anyway that you can open the site directly to suit in a specific size. An alternative, you may try making a splash page as the index with a "ENTER" link or something related. Thereafter the visitor clicks the "ENTER" link, a new window will open according to your size specified.
|
|
|
|
Sep 28 2005, 07:39 AM
Post
#3
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 436 Joined: 21-January 05 From: Koronadal City, Philippines Member No.: 3,358 |
Hey Zach! If you are using Macromedia Dreamweaver you can make use of the behaviors panel there to create the JavaScript to open a new window for your index page.
Find the Behaviors Panel > Add behavior > Open new window (or something like that...can't remember and this isn't my pc If you're not using Dreamweaver you can code the javascript yourself and just change the EVENT to onLoad then assign it to the javascript function that opens the new window like onLoad="openNewWindow();" . That's basically the principle behind it. I hope this helped.. |
|
|
|
Sep 28 2005, 05:08 PM
Post
#4
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 178 Joined: 26-June 05 Member No.: 8,699 |
well both of your guyses ideas helped what i was thinking was perhaps making an intro page with a meta in the head to have it after five seconds auto load the new window so that could work but still id like to not have an intro page and just load directly into the main thing however no unfortunatly im not using Dream Weaver
|
|
|
|
Sep 28 2005, 07:05 PM
Post
#5
|
|
|
King of My WOrld ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 482 Joined: 11-October 04 Member No.: 1,665 |
hey there ... regarding your question ... it's kinda easy to do that ... im sure someone has already tell you how to do that ..
|
|
|
|
Sep 28 2005, 09:34 PM
Post
#6
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 178 Joined: 26-June 05 Member No.: 8,699 |
Um actually they havent lol so could you help me out on this matter?
|
|
|
|
Sep 29 2005, 09:54 AM
Post
#7
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 36 Joined: 27-September 05 Member No.: 12,296 |
What you want are mostly being used in a pop-up window. I haven't tried this but i have some in mind that its a matter of code. Just use that pop-up code in your index page maybe it will work.
If its works....tell me how. lol! |
|
|
|
Sep 29 2005, 05:16 PM
Post
#8
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 178 Joined: 26-June 05 Member No.: 8,699 |
i have firefox so i never get pop ups lol so um what is the code for a pop up window?
|
|
|
|
Sep 30 2005, 03:56 AM
Post
#9
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 36 Joined: 27-September 05 Member No.: 12,296 |
Make a blank index page and place the code inside: Just change the url for your mainpage and the size of the page. place this code inside <head> tag: <script language="JavaScript"> function PopWindow() { var Url = "http://www.yourwebsite.com/mainpage.htm"; var WindowWidth = 200; var WindowHeight = 200; var WindowTop = (screen.availHeight/2) - (WindowHeight/2); var WindowLeft = (screen.availWidth/2) - (WindowWidth/2); var WindowProps = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable,width='+WindowWidth+',height='+WindowHeight+',left='+WindowLeft+',top='+WindowTop+',screenx='+WindowLeft+',screeny='+WindowTop; PoppedWindow = window.open(Url,"PoppedWindow",WindowProps); } </script> Place this code onLoad="PopWindow();" inside your <body> tag like this: <body onLoad="PopWindow();"> Test it. i dont recommend this one coz you'll be no where to find in search engines if you use this. Do far this only i can help. LOL! Maybe other guys there can incorporate on this idea. |
|
|
|