• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » For Webmasters » Custom Solutions » Tutorial to create Pop-Up Ads (Tutorial to create Pop-Up Ads)
Tutorial to create Pop-Up Ads
DEEPKG
Posts: 316
Reputation: 8

Message # 1 | 11:50 AM
<!-- TWO STEPS TO INSTALL POPUP WINDOW:

1. Paste the first into the HEAD of your HTML document
2. Use the code to open the popup page on your site -->

<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->

<HEAD>

Code
<SCRIPT LANGUAGE="JavaScript">
<!-- Idea by:  DEEPTHEHACKER -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!!http://software-lint.ucoz.com/blog -->

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=400,height=200');");
}
// End -->
</script>

<!-- STEP TWO: Paste this onLoad event handler into the BODY tag -->

Code
<BODY onLoad="javascript:popUp('[<<<<YOUR POP UP LINK>>>]')">

<!-- Script Size:  0.73 KB  -->

cool cool cool cool cool cool

THANK YOU ALL CREDIT TO DEEPTHEHACKER


I Try to help. U can Try to give Rep ++ For my try :P
khen
Posts: 475
Reputation: 13

Message # 2 | 4:58 AM
DEEPKG, Your topic should not be in this forum. You should put this under Hints and Tips Forum Section. Learn to use Proper Categorization of your topic.
Post edited by khen - Saturday, 2011-03-05, 5:00 AM
DEEPKG
Posts: 316
Reputation: 8

Message # 3 | 5:08 AM
khen, i will remember it !!!!!!!!!!!! smile smile smile smile smile smile
I Try to help. U can Try to give Rep ++ For my try :P
Animorph
Posts: 2856
Reputation: 189

Message # 4 | 11:11 AM
- Moved to Hints and Tips -
To busy building a passive income online ;)
cyberworlds
Posts: 77
Reputation: 1

Message # 5 | 7:10 PM
how to add with 2 link pop up?
Natashko
Posts: 3366
Reputation: 171

Message # 6 | 8:42 AM
cyberworlds,
Quote (cyberworlds)
how to add with 2 link pop up?

I am not sure I understand you. Please rephrase the question.
cyberworlds
Posts: 77
Reputation: 1

Message # 7 | 9:04 AM
Quote (Natashko)

I am not sure I understand you. Please rephrase the question.


Quote (DEEPKG)
Code
<BODY onLoad="javascript:popUp('http://yoursite.com')">

<!-- Script Size: 0.73 KB -->


how to add 2 link???
example ::::

<BODY onLoad="javascript:popUp('http://yoursite1.com, http://yoursite2.com ')">

Natashko
Posts: 3366
Reputation: 171

Message # 8 | 9:26 AM
cyberworlds,
Quote (cyberworlds)
how to add 2 link???

Like this:
Code
<body onLoad="popUp('URL1'); popUp('URL2');">
cyberworlds
Posts: 77
Reputation: 1

Message # 9 | 9:35 AM
Quote (Natashko)

Quote (cyberworlds)
how to add 2 link???

Like this:
Code
<body onLoad="popUp('URL1'); popUp('URL2');">


its working, thanks natashko biggrin biggrin

CodeResolution
Posts: 1570
Reputation: 58

Message # 10 | 10:23 PM
Regarding this script, please note that this may most likely become an annoying occurance to users. It may be possible to use Conditional Operators or Javascript to restrict how often or when they appear.
Kind regards,
Elliott.

"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.

I'm on Behance and Twitter.
Post edited by CodeResolution - Monday, 2012-12-17, 5:25 PM
AlexWains
Posts: 16
Reputation: 0

Message # 11 | 8:21 PM
does anybody help me...how to create a pop-up Log/register please ......and anybody know how to delete comment in File Catalog cry
I'm not so good in the case of websites, But i'm a Good Learner i can learn Very Fast...
Thanks for the help buddies

and that is my site [ King Wains Alex ]
carloscompu
Posts: 246
Reputation: 1

Message # 12 | 7:58 PM
Ok I made it work but it the pop uip blocker blocks the page

Is there a load page that pop blockers wont block it because its a registration page
Post edited by carloscompu - Thursday, 2012-12-13, 8:01 PM
Paradox
Old Guard
Posts: 3284
Reputation: 145

Message # 13 | 3:20 AM
carloscompu, unfortunately not. That is not relative to the page coding but instead on the popup blocker. If it is programmed to prevent onLoad events relating to popups from executing then it will do so no matter the coding of the web page. wink
Jack of all trades in development, design, strategy.
Working as a Support Engineer.
Been here for 13 years and counting.
uCoz Community » For Webmasters » Custom Solutions » Tutorial to create Pop-Up Ads (Tutorial to create Pop-Up Ads)
  • Page 1 of 1
  • 1
Search: