Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Web Design Lobby Forum for general web design issues not specific to scripting or graphics.

Directory Submission Service   I Sell Pagerank   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 03-06-2008, 08:03 AM   #1 (permalink)
Contributing Member
 
Join Date: 01-18-08
Posts: 158
iTrader: 0 / 0%
Latest Blog:
None

madcaptains is liked by many
need help with a pop up window

Hello,
I made a pop up window on my website. I actually don't like the button we use to open the window but don't know how to change it for an other.

The button is on this page: Here
Its the button call "Complete fish diseases diagnosis" in the middle of the page.

That would be great to replace that crapy button with something nice.

Here is the code I have use to make that pop-up:

In the <head> section
<SCRIPT LANGUAGE="JavaScript">
<!-- Idea by: Nic Wolfe -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- 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=1,width=520,height=625');");
}
// End -->
</script>

in the <body> section
<CENTER><form>
<input type=button value="COMPLETE FISH DISEASE DIAGNOSIS" onClick="javascript:popUp('http://www.aquariumobsession.com/diseases_diagnosis/diseasesdiagnosis')">
</form></CENTER>

I know nothing about javascript. Could anyone show me what part of that code I must change?

Thank you for your time.
madcaptains is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 03-07-2008, 01:29 AM   #2 (permalink)
v7n Mentor
 
Join Date: 07-24-06
Posts: 686
iTrader: 1 / 100%
Latest Blog:
None

nasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nice
You can put onClick attribute on any link. For example:

Code:
<a href="#" onClick="javascript:popUp('http://www.aquariumobsession.com/diseases_diagnosis/diseasesdiagnosis')"> Yadayadayada</a>
nasty.web is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

vB 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
a pop-up window to get trafic madcaptains SEO Forum 2 02-05-2008 01:02 AM
how to populate parent window from child window usin coldfusion daraptor Coding Forum 0 01-28-2007 09:53 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 07:29 PM.
© Copyright 2008 V7 Inc