DHTML Window Designer

User 107798 Photo

Registered User
1 post

I created a window and the instructions tell me to add this code to my page but it doesn't tell me where to put the script. I tried to place it between the body tags and the head tags but it didn't work.
<script language="JavaScript" src="CCWinLib.js"></script>
<script language="JavaScript" src="vetsamerica.js"></script>

And what I want to do is have the window pop open when hovered over a link, or when clicked on a link, which I am assuming you choose this option that is in the instructions:
Open window with a link
<a href="nojavascript...DHTMLWindow-Vets.OpenWindow()">Open DHTML Window</a>

Do you just change "Open DHTML Window to the text you want as your link?

Any help would be appreciated.

User 122279 Photo

Senior Advisor
12,638 posts

CoffeeCup has not got any DHTML windows designer. You'll find something about it at Dynamic Drive: http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/
Ha en riktig god dag!
Inger, Norway
My new honey site, built with RFF: https://eikweb.com/horgenhonning/
Component sharing for RFF, RBB, RSD and SD: https://eikweb.com/sharing/

User 37670 Photo

Registered User
2,138 posts

Inger.....Coffeecup does have a DHTML window designer...I use it all the time.

You put that first part of your code after the tag like it shows....right at the very end of your page code, you will see this tag:
it should be the last bit of code on the entire page.
Right after that, you add:
<script language="JavaScript" src="CCWinLib.js"></script>
<script language="JavaScript" src="vetsamerica.js"></script>

For your link to open it, you put the line like what you have:
<a href="nojavascript...DHTMLWindow-Vets.OpenWindow()">Open DHTML Window</a>
but you can change the Open DHTML Window part to any text you want.

If it does not work, open the .js file and check for these things:

WindowName : 'groupsB',
assuming the name for this file was called groupB

then near the bottom of the .js code, you might have to change some small bit of code, like this:

Shadow : true,
Id : 'DHTMLWindow1'
var DHTMLWindow1 = new FerantDHTMLWindow(params);

You may need to change the DHTMLWindow1 text to the name you saved your file. Not sure why, but sometimes it helps, especially if you use more than one window on the same page.
With the file called groupB, that part of the code would look like this:

Shadow : true,
Id : 'groupsB'
var groupsB = new FerantDHTMLWindow(params);

As far as adding your code to your page, the tab in the window designer "how to use on your web page" under step 4 has a drop down menu with selections for what type of link you want to open. This will only provide information once you have saved your file. You must save first, then choose the type of link.
I hope that helps you.
Good Luck
E-Learning Specialist
www.mainsites.ca is my website, and yes, some of it is crappy.

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.