Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 07-24-2002, 04:17 AM Newbie Question
Average Talker

Posts: 15
Location: Florida
Trades: 0
I am currently using front page, but I can upload through extensions or FTP.... I am wanting to create my own pop up window (temporarily) when people acccess my main page... I have never used Java script (so I am clueless but quick learner if I have a decent piece of shareware/freeware/trial to help me out)... can anybody help?????
Beckie
__________________
Webmistress
Please login or register to view this content. Registration is FREE
Online Store Opening August1!
trefrggy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-24-2002, 04:49 AM
praveen's Avatar
Life is a Dream

Posts: 3,591
Name: Praveen
Location: Chennai, India
Trades: 0
just put this in the head part of the page.

<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
//-->
</script>

and in the body tag add this
onLoad="MM_openBrWindow('d','mywindow','toolbar=ye s,location=yes,status=yes,menubar=yes,scrollbars=y es,resizable=yes,width=100,height=100')"

then ur body tag will look like this
<body onLoad="MM_openBrWindow('d.html','mywindow','toolb ar=yes,location=yes,status=yes,menubar=yes,scrollb ars=yes,resizable=yes,width=100,height=100')">

customizations : yes if u want it to be displayed else no.
toolbar = yes/no
location = yes/no
status = yes/no
menubar = yes/no
scrollbars = yes/no
resizable = yes/no

mywindow : window name
width & height : ur choice. or do not mention it.


this is one way

else in ur head part
say

<SCRIPT LANGUAGE="JavaScript1.1">
{
window.open("test.html", "","menubar=no,toobar=no,location=no,resizable=no, width=245,height=235,status=no,toolbar=no,scrollba r=no");
}
</SCRIPT>

same customizations as above.

that's it.

let me know.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

Last edited by praveen; 07-24-2002 at 04:51 AM..
praveen is offline
Reply With Quote
View Public Profile
 
Old 07-24-2002, 11:45 AM
DaveMo~'s Avatar
Administrator
Defies A Status

Posts: 10,200
Name: Dave
Location: Scott Depot, West Virginia, USA
Trades: 1
I think this is about the same as praveen, with the exception to center the pop-up (the x-y axis).

In the < head >

<script>

var doPopUpX = (screen.width/2)-240;
var doPopUpY = (screen.height/2)-300;
var pos = "left="+doPopUpX+",top="+doPopUpY;

function doPopUp(){
doPopUpWindow = window.open("http://www.yourpage.com","George","toolbar=yes,menubar=yes,
status=yes,scrollbars=yes,resizable=yes,
width=600,height=480,"+pos);
}

</script>

In the < body >

<body onload="doPopUp()">

bold = customize
__________________________________________________
Praveen, does it need the x-y axis in order to center the pop-up?

Dave
__________________

Please login or register to view this content. Registration is FREE
:
Please login or register to view this content. Registration is FREE
:
Please login or register to view this content. Registration is FREE
:

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
?

DaveMo~ is offline
Reply With Quote
View Public Profile
 
Old 07-24-2002, 12:42 PM
Average Talker

Posts: 15
Location: Florida
Trades: 0
WOW!! Thanks I will have to try it!! I took out a pic to put in an animation that will be taken off in a few weeks, and prefer to have it in a different window when they open the home page!! I will have to try this tonight!! THANKS!
I will let you know if it worked!!
Beckie
__________________
Webmistress
Please login or register to view this content. Registration is FREE
Online Store Opening August1!
trefrggy is offline
Reply With Quote
View Public Profile
 
Old 07-24-2002, 02:56 PM error in tag???
Average Talker

Posts: 15
Location: Florida
Trades: 0
<script language="JavaScript">
<!--
function MM_openBrWindow(http://www.scrapbookextra.com/GrandOpening.htm,Grand Opening!) {
window.open(http://www.scrapbookextra.com/GrnadOpening.htm,Grand Opening!,menubar=no,toolbar=no,location=no,resizab le=no,width=350,height=300,status=no,scrollbar=no) ;
}
//-->
</script>

<body onLoad="MM_openBrWindow('http://www.scrapbookextra.com/GrandOpening.htm','Grand Opening!','toolbar=no,location=no,status=
no,menubar=no,scrollbars=no,resizable=no,width
=350,height=300')">

the error message i get says this:
Line:20
Character:30
Error: Expected';'
file://C:\WINDOWS|Temporary Internet Files\Content.IE5\45Y1ULW9\[1].htm

HELP!!
Beckie
__________________
Webmistress
Please login or register to view this content. Registration is FREE
Online Store Opening August1!
trefrggy is offline
Reply With Quote
View Public Profile
 
Old 07-24-2002, 06:09 PM
dk01's Avatar
Ultra Talker

Posts: 373
Location: Ames, IA
Trades: 0
PHP Code:
<script language="JavaScript"
<!-- 
function 
MM_openBrWindow(OpenURL,WinName,Features) { 
window.open(OpenURL,WinName,Features); 

//--> 
</script> 

<body onLoad="MM_openBrWindow('http://www.scrapbookextra.com/GrandOpening.htm','Grand Opening!','toolbar=no,location=no,status= 
no,menubar=no,scrollbars=no,resizable=no,width 
=350,height=300');"> 
Ok just copy the above back into your webpage and have it replace what you had before.
-dk
__________________
Did I help you? If so, be nice and throw me some
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
dk01 is offline
Reply With Quote
View Public Profile
 
Old 07-24-2002, 06:12 PM Re: error in tag???
DaveMo~'s Avatar
Administrator
Defies A Status

Posts: 10,200
Name: Dave
Location: Scott Depot, West Virginia, USA
Trades: 1
Oops, I think dk is right in the next post. I edited this one of mine out so not to be confusing.

Dave
__________________

Please login or register to view this content. Registration is FREE
:
Please login or register to view this content. Registration is FREE
:
Please login or register to view this content. Registration is FREE
:

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
?

DaveMo~ is offline
Reply With Quote
View Public Profile
 
Old 07-24-2002, 06:17 PM
dk01's Avatar
Ultra Talker

Posts: 373
Location: Ames, IA
Trades: 0
Hey Dave unfourtunately that won't work because trefrggy copied the URL, title, and features into the actual script too. I think if you look it over you will see what I mean. I think the one I posted above does it correctly.
-dk
__________________
Did I help you? If so, be nice and throw me some
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
dk01 is offline
Reply With Quote
View Public Profile
 
Old 07-24-2002, 06:21 PM
DaveMo~'s Avatar
Administrator
Defies A Status

Posts: 10,200
Name: Dave
Location: Scott Depot, West Virginia, USA
Trades: 1
I think you're right dk, so I edited out my post to not be confusing.

Dave
__________________

Please login or register to view this content. Registration is FREE
:
Please login or register to view this content. Registration is FREE
:
Please login or register to view this content. Registration is FREE
:

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
?

DaveMo~ is offline
Reply With Quote
View Public Profile
 
Old 07-24-2002, 07:05 PM Thanks guys but still no luck.. i left it in if you are willing to look at it!
Average Talker

Posts: 15
Location: Florida
Trades: 0
Maybe it is because of Front Page??
http://www.scrapbookextra.com
I am TRYING (with ya'll's expertise...TYVM) to get the animation I have on the shop online page to come up in a pop up window whenever you open the main page (so I created a page GrandOpening.htm for that with just the background and animation)
Well, thanks for trying!! I will live without it!!
Beckie
__________________
Webmistress
Please login or register to view this content. Registration is FREE
Online Store Opening August1!
trefrggy is offline
Reply With Quote
View Public Profile
 
Old 07-25-2002, 12:39 AM
dk01's Avatar
Ultra Talker

Posts: 373
Location: Ames, IA
Trades: 0
I do not see the script we gave you on that page. I think you need to re upload the site first so we can see it.
-dk
__________________
Did I help you? If so, be nice and throw me some
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
dk01 is offline
Reply With Quote
View Public Profile
 
Old 07-25-2002, 03:26 AM
Average Talker

Posts: 15
Location: Florida
Trades: 0
AHHHH that is because a friend of mine directed me to another javascript freebie site that looked like it would work...so i tried that..when it failed i gave up!! i wasted my WHOLE day on that instead of getting down to other important business!! LOL So..i will change it back tomorrow evening...after i accomplish what i HAVE to....LOL
Thank you guys SOOO Much..You are the BEST!
Beckie
__________________
Webmistress
Please login or register to view this content. Registration is FREE
Online Store Opening August1!
trefrggy is offline
Reply With Quote
View Public Profile
 
Old 07-25-2002, 11:44 AM
Average Talker

Posts: 15
Location: Florida
Trades: 0
Okay!! I put it back...doesn't show any errors when the page loads...BUT the pop up doesn't pop up
Beckie
__________________
Webmistress
Please login or register to view this content. Registration is FREE
Online Store Opening August1!
trefrggy is offline
Reply With Quote
View Public Profile
 
Old 07-25-2002, 05:30 PM
dk01's Avatar
Ultra Talker

Posts: 373
Location: Ames, IA
Trades: 0
Try taking out all the spaces between the lines in the code. You seem to have a couple newlines right in the middle of the onLoad code. i Dunno if that'll fix it.
-dk
__________________
Did I help you? If so, be nice and throw me some
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
dk01 is offline
Reply With Quote
View Public Profile
 
Old 07-25-2002, 06:05 PM
Average Talker

Posts: 15
Location: Florida
Trades: 0
Hmmm fixed that and still no window...okay I am gonna pull all my hair out..LOL..NAHHHH i will just steal that bottle from ya DK....Cause only one more drink ain't cuttin it!! LOL
beckie
__________________
Webmistress
Please login or register to view this content. Registration is FREE
Online Store Opening August1!
trefrggy is offline
Reply With Quote
View Public Profile
 
Old 07-25-2002, 10:07 PM
Average Talker

Posts: 15
Location: Florida
Trades: 0
I have been playing with the code and I am SOOO close..only 1 error showing, but I can't seem to figure out what it is..and right now in IE, the main page begins to load, then switches to www.scrapbookextra.com/no (of course for which there is no page!) BUT it is not a pop up, either...It DOESN"T do this in Netscape (go figure) so here are the tags in Netscape:

<script language="JavaScript"> <!-- function="MM_openBrWindow(OpenURL,WinName,Features )"
{ window.open="OpenURL,WinName,Features" } //--> </script>

<body onLoad="MM_openBrWindow(OpenUrl='http://www.scrapbookextra.com/GrandOpening.htm',WinName='GrandOpening!',toolbar= 'no',location='no',status='no',menubar='no',scroll bars='no',resizable='no',width='350',height='300') ">

any ideas??

beckie

hey DK thanks for the bottle...it seems to have helped a bit!!


__________________
Webmistress
Please login or register to view this content. Registration is FREE
Online Store Opening August1!
trefrggy is offline
Reply With Quote
View Public Profile
 
Old 07-26-2002, 12:31 AM
dk01's Avatar
Ultra Talker

Posts: 373
Location: Ames, IA
Trades: 0
ok try replacing this:
Code:
<script language="JavaScript"> 
<!-- function="MM_OpenBrWindow(OpenURL,WinName,Features)" 
{ window.open="OpenURL,WinName,Features" } //--> 
</script>
with this
Code:
<script language="JavaScript"> 
<!-- 
function MM_OpenBrWindow(OpenURL,WinName,Features) { 
window.open(OpenURL,WinName,Features") 
} 
//--> 
</script>
and it should work. fingers crossed.
-dk
__________________
Did I help you? If so, be nice and throw me some
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
dk01 is offline
Reply With Quote
View Public Profile
 
Old 07-26-2002, 01:05 AM
Average Talker

Posts: 15
Location: Florida
Trades: 0
same thing...now the errror when i preview (before I save and publish) is
line 24 character 1 says: Object expected
my thinking..well if it's expected..then it should WORK DAMMIT!!! LOL .....well let me play with the body tag some more...
Beckie
__________________
Webmistress
Please login or register to view this content. Registration is FREE
Online Store Opening August1!
trefrggy is offline
Reply With Quote
View Public Profile
 
Old 07-26-2002, 01:46 AM
Average Talker

Posts: 15
Location: Florida
Trades: 0
OHOHOHOH!!! the bottom <head> scrpt that praveen originally gave me got the window to pop up!!! BUT cannot find server message in the pop up!! i did take out the body tag, so let me try putting that back in!
beckie
__________________
Webmistress
Please login or register to view this content. Registration is FREE
Online Store Opening August1!
trefrggy is offline
Reply With Quote
View Public Profile
 
Old 07-26-2002, 02:39 AM
Average Talker

Posts: 15
Location: Florida
Trades: 0
DUH!!! In my excitement I had forgotten to add the http:// .....then forgot to add the slash between the address and the page...MAJOR BLONDE MOMENT!!
I DID IT!!!!
Thank you Praveen...the answer was actually in your FIRST post (the last <head> script you gave me...NO body tag)
DK...thanks for ALL the help..and hanging in there!! ohh and the extra drinks....LOL
You two are the bomb!!
Beckie

happy but dazed at this point....LOL
__________________
Webmistress
Please login or register to view this content. Registration is FREE
Online Store Opening August1!
trefrggy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Newbie Question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.54531 seconds with 12 queries