FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

popup for website !

 


kirii
Quote:
<!-- 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>

<SCRIPT LANGUAGE="JavaScript">


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


<!-- STEP TWO: Use the following button code for the new window -->

<form>
<input type=button value="Open the Popup Window" onClick="javascript:popUp('http://nguoithuongoi.info')">
</form>

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

-open a popup about author .......
-chage the red and yellow words
have fun!
kevinalle
be aware most of the browsers block this type of popup.
There are more complicated codes for avoiding popup-blocking.
Nice code anyway!
aningbo
the best thing to do is to avoid popups...

thank you for the script. hope someone finds it useful.
jeremyyak
This looks like a script from a generator. Nothing special, and like everyone else said, lots of browser block them and no on likes em Razz
~Jeremy~
jabapyth
Code:
<div id="about" style="top:200;left:200;visibility:hidden;position:absolute;background-color:lightgreen;border-style:solid;border-color: green;border-width:2;margin:5px 5px 5px 5px;padding:5px;">
About The Author<br>
<button onclick="document.getElementById('about').style.visibility='hidden';">Close</button>
</div>
<button onclick="document.getElementById('about').style.visibility='visible'">Show</button>

heres a little "web 2.0" way to do it. No popups, and cant be blocked. its just a div tag, so feel free to play around with the colors and sizes.


Very Happy
fadirocks
jabapyth wrote:
Code:
<div id="about" style="top:200;left:200;visibility:hidden;position:absolute;background-color:lightgreen;border-style:solid;border-color: green;border-width:2;margin:5px 5px 5px 5px;padding:5px;">
About The Author<br>
<button onclick="document.getElementById('about').style.visibility='hidden';">Close</button>
</div>
<button onclick="document.getElementById('about').style.visibility='visible'">Show</button>

heres a little "web 2.0" way to do it. No popups, and cant be blocked. its just a div tag, so feel free to play around with the colors and sizes.


Very Happy


Cool Sutff Very Happy
awissoft
The best Popups for me are "inline" popups, because they are not blockable.
Try http://www.freepopupcreator.com/

You can see an example at my site http://awissoft.50webs.com/splash/

When you are experienced you can easely modify the generated code and
create your individual inline popups.

Anton
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.