
|
View Full Version : Java Question
TheComputerGuy 01-10-2001, 06:10 PM Alrighty then,
i have a java problem and can't find anywhere to get this answer answered. I want to allow someone to click on a link, then allow a banner to pop-up but have the page they clicked on go to the site originally intended. This is very simple from what i understand.
alpha 01-10-2001, 06:24 PM you can just do
<a href="http://oringinally-intended.com" onClick="MM_openBrWindow('theURLofPopUp.html','AdPopup','width=700,height=400')">Click here!</a>
you have to create a javascript function before this takes place... this is from dreamweaver in opening new browser windows:
(try putting this inside the (head)(/head) in html)
<script language="javascript" type="text/javascript">
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
</script>
later
[Edited by alpha on 01-10-2001 at 05:30 PM]
etLux 01-10-2001, 08:01 PM If I understand your question, I think you probably want to call the popup with an unload event in the body tag, thus:
<body onunload="javascript:popWindowFunction()">
TheComputerGuy 01-10-2001, 10:06 PM like forcing someone to click on a banner and the banner pops up and the page goes to whereever it needs to go
alpha 01-10-2001, 10:18 PM like forcing someone to click on a banner and the banner pops up and the page goes to whereever it needs to go
i don't know about the forcing part, but
if you want the popup to come up and then the link takes you to whatever, then try my way.
but, if you want the page to go wherever and THEN the popup to come up, use etLux's way.
its practically the same, if you are talking about popups.
later
<<MOD NOTE>>
Oops, I thought this was the one forcing the horizonatal scroll hee hee. Must look closer next time.
<</MOD NOTE>>
[Edited by Chicken on 01-14-2001 at 12:15 PM]
etLux 01-11-2001, 12:09 AM I think maybe we're not understanding the question clearly.
TheComputerGuy 01-11-2001, 12:21 AM Yeah i think you are! Thanks iwill try both
etLux 01-12-2001, 02:00 AM By the way, I feel compelled to add... this is JavaScript -- not JAVA.
TheComputerGuy 01-12-2001, 04:44 PM Well the same thing to me, Jscript and so on. Like MS-dos and IBM dos
etLux 01-12-2001, 04:49 PM Originally posted by TheComputerGuy
Well the same thing to me, Jscript and so on. Like MS-dos and IBM dos
Scary.
MattF 01-13-2001, 05:55 PM Java is not the same as JavaScript. JavaScript has given a bad name to Java. JavaScript was originally developed by Netscape for Navigator 3 to provide pages that were dynamic. The syntax was "barely" similar to Java, Netscape licensed the use of the word JavaScript and it was sort of a joint thing from then.
TheComputerGuy 01-13-2001, 06:47 PM Does anyone know the reason this post seems to be so wide????????????
etLux 01-13-2001, 07:27 PM Simple. Great minds are at work, and needed the extra space.
kunal 01-14-2001, 01:29 AM Originally posted by TheComputerGuy
Does anyone know the reason this post seems to be so wide????????????
Its because of all the code that was pasted above. Nothing else. :)
TheComputerGuy 01-14-2001, 11:35 AM ok thanks
TheComputerGuy 01-16-2001, 09:03 PM alpha i could kiss you lovely little head. that script worked nicely, Etlux thanks for the thought, but it is easy for me to edit the html than javascript.
etLux 01-16-2001, 10:29 PM Programmer's First Law:
If it works, it must be right.
TheComputerGuy 01-17-2001, 09:10 PM http://www.webinfinity.org/ads1.html please check this out to see where i can add this
TheComputerGuy 01-17-2001, 09:16 PM But i am thinking now what if i had two pop up windows one going to an advirtisment and one going to cemain.html
|