PDA

View Full Version : Drop down/ Overlapping Content script in html5



Paramasivan
06-30-2014, 10:35 PM
Script : http://www.dynamicdrive.com/dynamicindex5/overlapcontent.htm

I am using this in responsive html5 file but it is not showing up.

It is at bottom most "Show Prices" button at http://www.emailforusa.com/travel/

Any help ?

jscheuer1
07-01-2014, 01:29 AM
Your page is in violation of Dynamic Drive's usage terms (http://www.dynamicdrive.com/notice.htm), which, among other things, state that the script credit must appear in the source code of the page(s) using the script. Please reinstate the notice first.

Two more problems I see:

1) This content should be a direct child of the body tag:


<div id="subcontent" style="position:absolute; visibility: hidden; border: 9px solid orange; background-color: white; width: 300px; padding: 8px;">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
</div>

Easiest way to ensure that is to place it right before the closing </body> tag.


2) There's no initialization. To fix that, add something like so after the above content:


<script>
dropdowncontent.init("showpriceslink", "left-top", 300, "click");
</script>