Webmaster Forum Rules | Posting Guide | Contact Us | Testimonials | Contributing Geek Program | Advertise on Geek/Talk
Welcome to the GeekTalk Webmaster Discussion Forums from GeekVillage.com

Click Here To Register. It's Free!

Go Back   geek/talk: Signature-free discourse for serious web publishers > YOUR CREATION: Building & Maintaining A Web Site > Web Design and Webmaster Issues
User Name
Password
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 11-26-2000, 04:19 PM   #1
1lit
Registered User
 
1lit's Avatar
 
Join Date: Nov 2000
Location: London
Posts: 282
Unhappy Javascript within Javascript ????

Just a quickie: is it possible to place javascript within javascript? The following is the code I am using to create a pop-up for a picture gallery. I would like to place a banner from a banner exchange in bold under each photo. When I use the code below I get an error message:

<SCRIPT language=JavaScript>
<!--
function openpic(pic_name) {
myWin= open("", "displayWindow", "width=640,height=510,status=no,toolbar=no,
menubar=no,scrollbars=yes,resizable=yes,alwaysrais ed=yes");

myWin.document.open();
myWin.document.write("<html><head>< title>" + pic_name + "</title>");
myWin.document.write("</head><BODY><center><TABLE CELLPADDING='0' CELLSPACING='0' WIDTH='468'>");
myWin.document.write("<br><img src=kate/image"+ pic_name + ".jpg><br>");
myWin.document.write("<br><br><BR&g t;<br><BR><br><BR>");
myWin.document.write("<script language='javascript' type='text/javascript' src='http://www.linkbuddies.com/ad.go?id=134039+2&n=3'></script>");

myWin.document.write("</center></body></html>");

myWin.document.close();
**

//-->
</SCRIPT>



You may view the source code for the entire page at: http://www.litmania.com/bla/gallery.shtml

Thanks very much for your help http://geekvillage.com/ubb/smile.gif

------------------
Nadeem Azam
Litmania.com Inc.
www.litmania.com
1lit is offline   Reply With Quote
Reply

Bookmarks

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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript help needed coolshop Web Development - Programming / Coding 4 11-21-2001 02:01 PM
javascript popup error with AOL - PLEASE HELP theDirtiest Web Development - Programming / Coding 3 10-06-2001 08:19 AM
Popups, Cookies, & Javascript... Help! :) Uneek Web Development - Programming / Coding 0 09-20-2001 10:57 AM
Javascript Website Waldo000000 Web Design and Webmaster Issues 3 04-22-2000 06:10 AM
Any good photo rotation javascript? notibrian Web Design and Webmaster Issues 1 11-13-1999 11:34 AM

Please support our advertisers. They ensure our survival.

All times are GMT -5. The time now is 04:02 PM.


GeekVillage.com is copyright © 1998-2015 Curiosity Cave - Science gifts for clever kids. All rights reserved.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.