gonen_ra
03-16-2005, 03:20 PM
i have a javascript which allows me to put a floating advartize
in HTML pages, so if the user scrolls the page down the banner goes down with the page
so it's in sight all the time (until the user clicks to close it).
you can see the example of a working banner here:
http://www.active.co.il/~gonen_active/adin_test_page/adin-good.html
when i put the code in a HTML page that includes this line at the top of it:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
the banner is not floating anymore, and it stays in the bottom of the page.
you can see a version of the bad banner here:
http://www.active.co.il/~gonen_active/adin_test_page/adin-bad.html
by removing this line I solve the problem.
by removing the absolute link to the file:
xhtml1-transitional.dtd
that is in the line, I also solve the problem.
Unfortunatlly, both are imposibole solutions, because I cant force
websites that publish my ads to remove this line or part of it (which could also be a rough job when PHP invloved)..
This line is added my some PHP alpications.
What could be the solution in the JS code so there won't be a conflict between my floating banner JS and the
xhtml1-transitional.dtd file loaded to the page ?
thank you for helping.
in HTML pages, so if the user scrolls the page down the banner goes down with the page
so it's in sight all the time (until the user clicks to close it).
you can see the example of a working banner here:
http://www.active.co.il/~gonen_active/adin_test_page/adin-good.html
when i put the code in a HTML page that includes this line at the top of it:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
the banner is not floating anymore, and it stays in the bottom of the page.
you can see a version of the bad banner here:
http://www.active.co.il/~gonen_active/adin_test_page/adin-bad.html
by removing this line I solve the problem.
by removing the absolute link to the file:
xhtml1-transitional.dtd
that is in the line, I also solve the problem.
Unfortunatlly, both are imposibole solutions, because I cant force
websites that publish my ads to remove this line or part of it (which could also be a rough job when PHP invloved)..
This line is added my some PHP alpications.
What could be the solution in the JS code so there won't be a conflict between my floating banner JS and the
xhtml1-transitional.dtd file loaded to the page ?
thank you for helping.