Welcome to WebmasterWorld Guest from 18.210.22.132

Forum Moderators: open

Message Too Old, No Replies

How do I use DHTML and Javascript on same page?

DHTML scripts stops JS from working...

     
2:41 am on Nov 17, 2003 (gmt 0)

Preferred Member from GB 

10+ Year Member

joined:Feb 22, 2002
posts:451
votes: 1


I am using this javascript [ukhotmovies.com] to slide-in some text from the side of the screen on my webpages e.g. the gif image which says 'Reviews' at the top of this page [ukhotmovies.com].

I am trying to use DHTML scripts to create pop-ups because more and more people are using pop-up killers; I have heard that such DHTML pop-ups are not blocked by these pop-up killers.

The scripts work fine on pages without the javascript I mentioned above, but when I use them on pages with the script, it shows the DHTML pop-up but not the image sliding in from the side of the browser. An example is on this test page [ukhotmovies.com].

I have tried to use various DHTML scripts, but they all disable my slide-in javascript. Ones I've used include this [dynamicdrive.com], this [joetec.net] and this [dynamicdrive.com].

Is there a reason why the slide-in javascript doesn't work when I add DHTML pop-ups?

How can I resolve this issue please? I'd like to be able to use both the JS and the DHTML.

Thank you.

3:49 pm on Nov 17, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


DHTML and "normal" JS should work just fine together. Maybe you have conflicting function names?
3:07 am on Nov 18, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Sept 24, 2002
posts:364
votes: 0


dhtml and javascript are the same thing ... there is something wrong with your "cut" and "pasting" : )
1:14 am on Nov 23, 2003 (gmt 0)

Preferred Member from GB 

10+ Year Member

joined:Feb 22, 2002
posts:451
votes: 1


Thank you guys. Was an onload conflict.

I appreciate the advice.

Two more points:

(1) Anybody got a pop-up killer installed? Do you see the drop-in box on this page [ukhotmovies.com]? Can you click on the ad and go the relevant page OK?

(2) How would I add a thin black border to the DHTML drop-in code? I have tried various permutations of the border command to no avail. Here's the line I need to add to:

<div id="dropin" style="position:absolute;visibility:hidden;left:350px;top:500px;width:328px;height:275px;background-color:#1D418B;">

Thanks.