Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 09-08-2006, 05:54 AM a pop up box
millwalll's Avatar
Webmaster Talker

Posts: 674
Name: James
Location: KENT
Trades: 3
hi all i want to make a pop upbox so when a users clicks a link i want a pop up box to come up with a offer any idears
millwalll is offline
Reply With Quote
View Public Profile Visit millwalll's homepage!
 
 
Register now for full access!
Old 09-08-2006, 10:34 AM Re: a pop up box
knives-out's Avatar
Skilled Talker

Posts: 51
Name: simon
Location: London
Trades: 0
Try this link ASU alt^I Weblogs » Blog Archive » Creating Standards Compliant Popup Windows

It has a quick tutorial on pop-up windows.
knives-out is offline
Reply With Quote
View Public Profile
 
Old 09-08-2006, 10:44 AM Re: a pop up box
jason_bristol's Avatar
Ultra Talker

Latest Blog Post:
New site - ConnectFrench.com
Posts: 312
Name: Jason Eyermann
Location: england bristol
Trades: 0
I think this is what you need.

<a href="#"onClick="alert('Type your message here');return false;">Click on me!</a>

if you want it a bit more complicated here is another one-

<script language = "JavaScript">

var color = prompt("What color do you prefer, red or blue? ","");
var adjective;

if (color == "red") {
adjective = "lurid.";
} else if (color == "blue") {
adjective = "cool.";
} else {
adjective = "confused."
}

var sentence = "You like " + color + "? The monkey thinks you're " +
adjective + "<p>";

// stop hiding me -->
</script>
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
jason_bristol is offline
Reply With Quote
View Public Profile Visit jason_bristol's homepage!
 
Old 09-10-2006, 12:03 AM Re: a pop up box
Silent77's Avatar
Ultra Talker

Posts: 269
Name: Silent
Location: Ohio
Trades: 0
both of the above ideas would be blocked by a pop up blocker, meaning most users will not see the pop up.
__________________
Firefox
rediscover the web

Please login or register to view this content. Registration is FREE
Down with internet explorer!
Silent77 is offline
Reply With Quote
View Public Profile Visit Silent77's homepage!
 
Old 09-10-2006, 03:35 PM Re: a pop up box
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Agreed. Why annoy your visitors with pop-ups anyway ?? Surely you can come up with a less annoying solution.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 09-10-2006, 03:38 PM Re: a pop up box
Super Talker

Posts: 110
Name: Jason
Trades: 0
I think what you are looking for uses dynamic html if you go to Dynamic Drive DHTML(dynamic html) & JavaScript code library they have several different solutions for popup boxes which a blocker wont block.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

autoecart is offline
Reply With Quote
View Public Profile Visit autoecart's homepage!
 
Old 09-12-2006, 11:24 PM Re: a pop up box
jlimchao's Avatar
Junior Talker

Posts: 2
Name: Joan
Location: Cebu city Philippines
Trades: 0
i have tried that a pop up box appears when a link is click but its in javascript. Anyway here is the code

var managewin=null;
function DGNewWindow(mypage,myname,w,h,scroll,pos) { if(pos=="random"){LeftPosition=(screen.width)?Math .floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Mat h.random()*((screen.height-h)-75)):100;} if(pos=="center"){LeftPosition=(screen.width)?(scr een.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;} else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20} settings='width='+w+',height='+h+',top='+TopPositi on+',left='+LeftPosition+',scrollbars='+scroll+',l ocation=no,directories=no,status=yes,menubar=no,to olbar=no,resizable=yes'; if(managewin!=null) { managewin.close(); } managewin=window.open(mypage,myname,settings); managewin.focus(); }

To call this function from html use this:

<a href="#" onclick="DGNewWindow('mypage','myname','width,'hei ght','yes/no','pos')">
jlimchao is offline
Reply With Quote
View Public Profile
 
Old 09-13-2006, 01:57 AM Re: a pop up box
gomx80's Avatar
Experienced Talker

Posts: 45
Name: Terry
Trades: 0
This is an example for you:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Vidu Popup New windows</title>
<script type="text/JavaScript">
<!--
function MM_popupMsg(msg) { //v1.0
alert(msg);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>

<body >
<br />
<br />
<a href="#" onclick="MM_openBrWindow('http://www.vietnammillionpixel.com','','resizable=yes,wid th=500,height=500')">New windows without component</a><br />
<br />

<a href="" onclick="MM_popupMsg('hello\r')" >Popup message</a>
</body>
</html>

I hope you do it ok.
__________________
Relax online:

Please login or register to view this content. Registration is FREE


Free Wallpapers:

Please login or register to view this content. Registration is FREE


Baby Girl:


Please login or register to view this content. Registration is FREE

Money online:

Please login or register to view this content. Registration is FREE
gomx80 is offline
Reply With Quote
View Public Profile
 
Old 09-13-2006, 02:53 AM Re: a pop up box
Hashim's Avatar
Experienced Talker

Posts: 39
Name: Hashim
Location: Aligarh
Trades: 0
If you use Dreamweaver 8, then the pop up function can be added very easily from the "Behaviours" tab.
__________________

Please login or register to view this content. Registration is FREE
<~~~~~ My Blog !


Please login or register to view this content. Registration is FREE
<~~~~~ Another Blog !
Hashim is offline
Reply With Quote
View Public Profile Visit Hashim's homepage!
 
Reply     « Reply to a pop up box
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.46424 seconds with 12 queries