The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How to add a pop up when someone visits the site

Go down

Solved How to add a pop up when someone visits the site

Post by CarpCharacin on Tue Nov 04, 2014 5:39 pm

I have the popup code here

Code:
<script language="javascript"><!--

function PopUp() {

   var TheURL = "http://www.thepetitionsite.com/985/921/022/ban-bowls-pt-2/";
   var PopWidth = "1200";
   var PopHeight = "500";
   var PosTop = "";
   var PosLeft = "";

   var SettingS = "toolbar=no,menubar=no,scrollbars=no,resizable=yes,width=" + PopWidth + ",height=" + PopHeight + ",top=" + PosTop + ",left=" + PosLeft;
   var PopUp = open(TheURL,"box",SettingS);
}

window.onload=PopUp;

// -->
</script>
Where do i add it to my site to make the pop up work?  This code is to open my petition in a new window when someone visits my forum


Last edited by CarpCharacin on Tue Nov 04, 2014 10:33 pm; edited 1 time in total

CarpCharacin
Forumember

Male Posts : 44
Reputation : 1
Language : English

http://carpkeeping.userboard.net

Back to top Go down

Solved Re: How to add a pop up when someone visits the site

Post by Ramdaman on Tue Nov 04, 2014 6:57 pm

Go to your Administration Panel => Modules => HTML and Javascript => JavaScript Codes Management
avatar
Ramdaman
Active Poster

Male Posts : 1614
Reputation : 98
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

Solved Re: How to add a pop up when someone visits the site

Post by CarpCharacin on Tue Nov 04, 2014 7:08 pm

@Ramdaman wrote:Go to your Administration Panel => Modules => HTML and Javascript => JavaScript Codes Management
I put my code in there and it did not work.  I made sure my op ups were not blocked and tried it in google chrome and internet explorer

CarpCharacin
Forumember

Male Posts : 44
Reputation : 1
Language : English

http://carpkeeping.userboard.net

Back to top Go down

Solved Re: How to add a pop up when someone visits the site

Post by CarpCharacin on Tue Nov 04, 2014 7:11 pm

you can try it to see if the pop up works from a different internet connection.  Here is the link http://carpkeeping.userboard.net/

CarpCharacin
Forumember

Male Posts : 44
Reputation : 1
Language : English

http://carpkeeping.userboard.net

Back to top Go down

Solved Re: How to add a pop up when someone visits the site

Post by SLGray on Tue Nov 04, 2014 7:56 pm

Did you activate JavaScript Management and check in all pages?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 42686
Reputation : 3003
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How to add a pop up when someone visits the site

Post by CarpCharacin on Tue Nov 04, 2014 8:18 pm

@SLGray wrote:Did you activate JavaScript Management and check in all pages?
i activated javascript management but i do not want my pop up to appear on all pages.  Just when someone goes to the index i want it to pop up.

UPDATE: i tried all pages and it still did not work.


Last edited by CarpCharacin on Tue Nov 04, 2014 8:21 pm; edited 1 time in total (Reason for editing : update)

CarpCharacin
Forumember

Male Posts : 44
Reputation : 1
Language : English

http://carpkeeping.userboard.net

Back to top Go down

Solved Re: How to add a pop up when someone visits the site

Post by Ange Tuteur on Tue Nov 04, 2014 10:24 pm

Hello CarpCharacin,

Try this :
Administration Panel > Modules > JavaScript codes management > Create a new script

Title : Your choice
Placement : in the homepage
Paste the code below :
Code:
function PopUp() {

  var TheURL = "http://www.thepetitionsite.com/985/921/022/ban-bowls-pt-2/";
  var PopWidth = "1200";
  var PopHeight = "500";
  var PosTop = "";
  var PosLeft = "";

  var SettingS = "toolbar=no,menubar=no,scrollbars=no,resizable=yes,width=" + PopWidth + ",height=" + PopHeight + ",top=" + PosTop + ",left=" + PosLeft;
  var PopUp = open(TheURL,"box",SettingS);
}

window.onload=PopUp;
avatar
Ange Tuteur
Forumaster

Male Posts : 13193
Reputation : 2904
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: How to add a pop up when someone visits the site

Post by CarpCharacin on Tue Nov 04, 2014 10:32 pm

@Ange Tuteur wrote:Hello CarpCharacin,

Try this :
Administration Panel > Modules > JavaScript codes management > Create a new script

Title : Your choice
Placement : in the homepage
Paste the code below :
Code:
function PopUp() {

   var TheURL = "http://www.thepetitionsite.com/985/921/022/ban-bowls-pt-2/";
   var PopWidth = "1200";
   var PopHeight = "500";
   var PosTop = "";
   var PosLeft = "";

   var SettingS = "toolbar=no,menubar=no,scrollbars=no,resizable=yes,width=" + PopWidth + ",height=" + PopHeight + ",top=" + PosTop + ",left=" + PosLeft;
   var PopUp = open(TheURL,"box",SettingS);
}

window.onload=PopUp;
Thanks a lot!!!

CarpCharacin
Forumember

Male Posts : 44
Reputation : 1
Language : English

http://carpkeeping.userboard.net

Back to top Go down

Solved Re: How to add a pop up when someone visits the site

Post by Ange Tuteur on Tue Nov 04, 2014 10:37 pm

You're welcome ^^

Topic archived
avatar
Ange Tuteur
Forumaster

Male Posts : 13193
Reputation : 2904
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum