Go Back   Work From Home Forum -- Work At Home -- Working From Home > Insider Secrets Club Private > Website Design

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 08-20-2008, 01:28 PM
Rickk's Avatar
Getting good at this!
 
Join Date: Aug 2008
Posts: 75
Thanks: 3
Thanked 14 Times in 9 Posts
Rep Power: 26
Rickk is an unknown quantity at this point
Default Help with pop-up window...

Hi ... I was wondering if anyone could help...

What is the best way to put a pop up window on a website?

What I would like is when people visit the site, a pop up box comes up with an announcement of a special offer, and then just a close button so they can carry on looking at the website.

Any tips on how to do this?

Thanks a million!
Reply With Quote
  #2  
Old 08-22-2008, 12:37 AM
Jamison's Avatar
Administrator
 
Join Date: May 2008
Posts: 886
Thanks: 25
Thanked 149 Times in 108 Posts
Rep Power: 20
Jamison is an unknown quantity at this point
Default

Here is a really simple way:

http://javascript.internet.com/gener...up-window.html

What are you wanting to accomplish?
Reply With Quote
  #3  
Old 08-28-2008, 01:30 PM
Rickk's Avatar
Getting good at this!
 
Join Date: Aug 2008
Posts: 75
Thanks: 3
Thanked 14 Times in 9 Posts
Rep Power: 26
Rickk is an unknown quantity at this point
Default thanks for the tip

Thanks Jamison! I am wanting to catch people's attention when they first come to my website with either a special announcement or advertisement.
Reply With Quote
  #4  
Old 09-21-2008, 10:33 PM
Jamison's Avatar
Administrator
 
Join Date: May 2008
Posts: 886
Thanks: 25
Thanked 149 Times in 108 Posts
Rep Power: 20
Jamison is an unknown quantity at this point
Default

Some of these pop-ups work pretty good for opt-in pages. Just be careful what you do with them. That is why "pop-up blockers" were invented.
Reply With Quote
  #5  
Old 12-05-2008, 10:36 AM
Just starting out
 
Join Date: Aug 2008
Location: Westminster, Colorado
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stevel4857 is an unknown quantity at this point
Default

go here:

http://javascript.internet.com/misce...n-content.html and change the code so that instead of on mouseover (the link) you add the code to the body tag and have it onload="" etc...
Reply With Quote
  #6  
Old 12-05-2008, 10:41 AM
Just starting out
 
Join Date: Aug 2008
Location: Westminster, Colorado
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stevel4857 is an unknown quantity at this point
Default

actually, this is what you want.

http://javascript.internet.com/text-...ntent-box.html

they're called dropdown boxes. This code will tell when and how many times to dropdown. Cosmetically it could look much better but all of the functionality is there.
Its a hidden div tag made invisible by CSS and only resembles a window.
Reply With Quote
  #7  
Old 12-05-2008, 10:42 AM
Just starting out
 
Join Date: Aug 2008
Location: Westminster, Colorado
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stevel4857 is an unknown quantity at this point
Default

<!-- TWO STEPS TO INSTALL DROP-IN CONTENT BOX:



1. Copy the coding into the HEAD of your HTML document

2. Add the last code into the BODY of your HTML document -->



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



<HEAD>



<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Original: DynamicDrive -->

<!-- Web Site: http://www.dynamicdrive.com -->

<style type="text/css">



#dropinboxv2cover{

width: 320px; /*change width to desired */

height: 220px; /*change height to desired. REMOVE if you wish box to be content's natural height */

position:absolute; /*Don't change below 4 rules*/

z-index: 100;

overflow:hidden;

visibility: hidden;

}



#dropinboxv2{

width: 300px; /*change width to above width-20. */

height: 200px; /*change height to above height-20. REMOVE if you wish box to be content's natural height*/

border: 2px solid black; /*Customize box appearance*/

background-color: lightyellow;

padding: 4px;

position:absolute; /*Don't change below 3 rules */

left: 0;

top: 0;

}



</style>



<script type="text/javascript">



/***********************************************

* Amazon style Drop-in content box- © Dynamic Drive DHTML code library (www.dynamicdrive.com)

* Visit DynamicDrive.com for hundreds of DHTML scripts

* This notice must stay intact for legal use

* Go to http://www.dynamicdrive.com/ for full source code

***********************************************/



var dropboxleft=200 //set left position of box (in px)

var dropboxtop=100 //set top position of box (in px)

var dropspeed=15 //set speed of drop animation (larger=faster)



//Specify display mode. 3 possible values are:

//1) "always"- This makes the fade-in box load each time the page is displayed

//2) "oncepersession"- This uses cookies to display the fade-in box only once per browser session

//3) integer (ie: 5)- Finally, you can specify an integer to display the box randomly via a frequency of 1/integer...

// For example, 2 would display the box about (1/2) 50% of the time the page loads.



var displaymode="always"



///Don't edit beyond here///////////



if (parseInt(displaymode)!=NaN)

var random_num=Math.floor(Math.random()*displaymode)

var ie=document.all

var dom=document.getElementById



function initboxv2(){

if (!dom&&!ie)

return

crossboxcover=(dom)?document.getElementById("dropi nboxv2cover") : document.all.dropinboxv2cover

crossbox=(dom)?document.getElementById("dropinboxv 2"): document.all.dropinboxv2

scroll_top=(ie)? truebody().scrollTop : window.pageYOffset

crossbox.height=crossbox.offsetHeight

crossboxcover.style.height=parseInt(crossbox.heigh t)+"px"

crossbox.style.top=crossbox.height*(-1)+"px"

crossboxcover.style.left=dropboxleft+"px"

crossboxcover.style.top=dropboxtop+"px"

crossboxcover.style.visibility=(dom||ie)? "visible" : "show"

dropstart=setInterval("dropinv2()",50)

}



function dropinv2(){

scroll_top=(ie)? truebody().scrollTop : window.pageYOffset

if (parseInt(crossbox.style.top)<0){

crossboxcover.style.top=scroll_top+dropboxtop+"px"

crossbox.style.top=parseInt(crossbox.style.top)+dr opspeed+"px"

}

else{

clearInterval(dropstart)

crossbox.style.top=0

}

}



function dismissboxv2(){

if (window.dropstart) clearInterval(dropstart)

crossboxcover.style.visibility="hidden"

}



function truebody(){

return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body

}



function get_cookie(Name) {

var search = Name + "="

var returnvalue = ""

if (document.cookie.length > 0) {

offset = document.cookie.indexOf(search)

if (offset != -1) {

offset += search.length

end = document.cookie.indexOf(";", offset)

if (end == -1)

end = document.cookie.length;

returnvalue=unescape(document.cookie.substring(off set, end))

}

}

return returnvalue;

}



if (displaymode=="oncepersession" && get_cookie("droppedinv2")=="" || displaymode=="always" || parseInt(displaymode)!=NaN && random_num==0){

if (window.addEventListener)

window.addEventListener("load", initboxv2, false)

else if (window.attachEvent)

window.attachEvent("onload", initboxv2)

else if (document.getElementById || document.all)

window.onload=initboxv2

if (displaymode=="oncepersession")

document.cookie="droppedinv2=yes"

}



</script>



</HEAD>



<!-- STEP TWO: Copy this code into the BODY of your HTML document -->



<BODY>



<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Original: DynamicDrive -->

<!-- Web Site: http://www.dynamicdrive.com -->

<div id="dropinboxv2cover">

<div id="dropinboxv2">



JavaScriptSource is your home for free scripts. You can add anything you like to the box.

Thanks DynamicDrive.

<br>

<p align="right"><a href="#" onClick="dismissboxv2();return false">Close It</a></p>



</div>

</div>



<p><center>

<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>

by <a href="http://javascriptsource.com">The JavaScript Source</a></font>

</center><p>



<!-- Script Size: 5.04 KB -->
Reply With Quote
  #8  
Old 12-07-2008, 01:34 AM
Insider
 
Join Date: Dec 2008
Posts: 138
Thanks: 15
Thanked 6 Times in 5 Posts
Rep Power: 26
InformationJunkie is an unknown quantity at this point
Default

Handy stuff. I think it might get lost though. Maybe should be its own thread.
Reply With Quote
Reply
Work From Home Forum -- Work At Home -- Working From Home > Insider Secrets Club Private > Website Design

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Build a Fortune in Window Cleaning Business mrClen Home Business Talk 3 11-26-2006 01:39 AM
Windows Vista psx23.com Club Lounge 1 11-03-2006 12:14 AM


All times are GMT -6. The time now is 03:04 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2
Talk Home Business

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28