PDA

View Full Version : question and hopefully a solution



shad97
06-16-2014, 02:19 PM
1) Script Title: Stay on Top content script

2) Script URL (on DD): http://dynamicdrive.com/dynamicindex17/stayontop.htm

3) Describe problem: I have gotten this script to work on my main page. My question is can I use this on other pages as long as the .js file and the external html are changed to match the new page so the links are correct? It is perfect for what I am needing, and just on the main page is ok, but it would be great if I could get it to work on both pages. The page I can't get it to work on is at http://co.morgan.al.us/humanresourcesindex.html.

Thanks,
Shad Smith

vwphillips
06-16-2014, 03:14 PM
alwaysOnTop.init({
targetid: 'hrbrowserwarning',
orientation: 3,
position: [400, 250],
fadeduration: [500, 500],
frequency: 1, // must be a number not a string '1'
hideafter: 10000,
externalsource: 'http://co.morgan.al.us/HRbrowser.html' // < no commer after last option
})


also
you only need one copy of the script on the domin as long as the file path is defined



<script type="text/css" src="http://co.morgan.al.us/stayontop.js"></script>

shad97
06-17-2014, 04:23 PM
That worked perfectly. Thanks so much.