OutFront Forums
     Home    Register     Search      Help      Login    

Sponsors
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

 

Javascript popups don't work with Template

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Microsoft FrontPage Help >> Javascript popups don't work with Template
Page: [1]
 
 
yogaboy

 

Posts: 377
Joined: 5/22/2004
Status: offline

 
Javascript popups don't work with Template - 5/26/2004 9:28:11   
Hello All,

I wrote some HTML with javascript so you click a link and boxes pop up, using layers and hidden/visible functions. Now I've started using FP2003 and I thought I'd make a .dwt template to make my life easier, but every page with the JS popups now doesn't work if I put it in the template.

Any ideas on why?

IAin
Shirley

 

Posts: 3129
Joined: 1/8/1999
From: Omaha, Ne USA
Status: offline

 
RE: Javascript popups don't work with Template - 5/26/2004 13:45:33   
The pop ups don't work? or is the link just bad?

_____________________________


Everything But Cake


(in reply to yogaboy)
yogaboy

 

Posts: 377
Joined: 5/22/2004
Status: offline

 
RE: Javascript popups don't work with Template - 5/26/2004 19:37:16   
I have the originals and they work, and I've checked them against the new pages using the template and they're the same. The moment I put the code below into the .dwt and create a new page with it, it stops working - the link becomes dead, just the sound of clicking and the grinding of teeth (mine) can be heard:).

This is the javascript I use
<script language="JavaScript">
function menus (whichMenu,whatState){
if (!document.all) {document[whichMenu].visibility = whatState;}

if(document.getElementById)
{document.getElementById(whichMenu).style.visibility = whatState}
}//ends function
</script>

Then I use div id's and styles... for example...
<STYLE type="text/css">
#why {position:absolute;top: 60px;left: 0px;width:750px;z-index: 2;visibility:hidden;font-family: century gothic; border:solid #000000 5px;background-color:#ffffff;}
</STYLE>

and in the body a link for the pop-up-box

<div>
<a href="javascript:menus('why','visible')">Why has?...blah blah</a><P>
</div>

and the content for the pop-up-box with a "Close" button
<div id="why">
<H3>Heading</H3><P>
Content<P>
<B><a href="javascript:menus('why','hidden')" class="pjump">Close</a></B>

Am I the only person this has happened to?? Microsoft make me feel so special!:)
Iain

(in reply to Shirley)
Page:   [1]

All Forums >> Web Development >> Microsoft FrontPage Help >> Javascript popups don't work with Template
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts