multiple dhtml window inside a page

Home » Forums » Free DHTML Menu Builder » multiple dhtml window inside a page


Registered User
2 posts

hi here,

I have made using html editor a page with a dhtml window.It's work but I would like
to have not only one dhtml window on the page.
I have insert a second .js but it's doen't work...
if you have the tip don't hesitate...

ste


Senior Advisor
858 posts

Without knowing what you have. Just a hint, make sure that the scripts have differing names. The positioning is a whole nother thing, there are many ways to do that, I like to position mine by using a style sheet and absolut positioning. Please see http://www.w3schools.com for some tutorials on DHTML and CSS. Alfred


Senior Advisor
2,125 posts

Hi. I am new to this forum. :confused: I have a page made as a glossary of terms. It has 80 or so words and terms, all with a pop up dhtml windows for each term. I hade to change some of the codes in the java script file. It can be opened in Coffee Cup editor. Change the part near the bottom of the script where it says Id : 'DHTMLWindow1' to Id : 'gloss1'. call your first link "glosss1" , and then the last line in the script change it to var gloss1 = new FerantDHTMLWindow(params); where gloss1 used to say something like DHTMLWindow1. Then do this for every new link you want. I just changed gloss1 to gloss2, then gloss3, ect.. I hope this helps, and I wish the program allowed for this without editing the code manually for every window. :confused: E-Learning Specialist
www.mainsites.ca is my website, and yes, some of it is crappy.


Registered User
2 posts

hi,

ok thx for the info .

best

stephane


Registered User
1 post

I have been trying for three days to get this to work and nothing makes sense. Can you *please* describe VERY CLEARLY what needs to be changed so that I can get more than one window to open on a page OR open one window but get the content to change for more than one link on a page? I don't speak javascript and am relying entirely on trial and error.

This is what I want: HTML page has 10 links for popup1, popup2, popup3, etc.

I used the window builder to open popup1 successfully.

NOWHERE do your instructions say where you are supposed to find CCWinLib.js or what has to go in the body tag, but by process of elimination I finally found and copied a CCWinLib.js file and I figured out this: <body "javascript:DHTMLWindow1.OpenWindow()">

So my code now looks like this:

<html>

<body "javascript:DHTMLWindow1.OpenWindow()">

<a href="nojavascript...DHTMLWindow1.OpenWindow()">Open Popup1</a>

</body>

</html>
<script language="JavaScript" src="CCWinLib.js"></script>
<script language="JavaScript" src="popup1.js"></script>

NOW WHAT??

Do I use the designer to create popup2.js and popup3.js? What do I have to change in the HTML page, what do I have to change in the js page, and what do I have to change anywhere else to get popup2 and popup3 to appear without an error about "Two Ferant DHTM windows found with the same id. Each window must have a unique id."

Ready to give up...

Kate

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.