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

View previous topic View next topic Go down

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

Post by CarpCharacin on November 5th 2014, 12:39 am

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 November 5th 2014, 5:33 am; 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 November 5th 2014, 1:57 am

Go to your Administration Panel => Modules => HTML and Javascript => JavaScript Codes Management

Ramdaman
Active Poster

Male Posts : 1614
Reputation : 96
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 November 5th 2014, 2:08 am

@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 November 5th 2014, 2:11 am

you can try it to see if the pop up works from a different internet connection. Here is the linkhttp://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 November 5th 2014, 2:56 am

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.


SLGray
Administrator
Administrator

Male Posts : 35629
Reputation : 2372
Language : English
Location : United States

http://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 November 5th 2014, 3:18 am

@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 November 5th 2014, 3:21 am; 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 November 5th 2014, 5:24 am

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;

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

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

Post by CarpCharacin on November 5th 2014, 5:32 am

@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 November 5th 2014, 5:37 am

You're welcome ^^

Topic archived

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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