Results 1 to 3 of 3

Thread: question and hopefully a solution

  1. #1
    Join Date
    Apr 2013
    Posts
    21
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default question and hopefully a solution

    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

  2. #2
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    Code:
    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

    Code:
    <script type="text/css" src="http://co.morgan.al.us/stayontop.js"></script>
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

  3. The Following User Says Thank You to vwphillips For This Useful Post:

    shad97 (06-17-2014)

  4. #3
    Join Date
    Apr 2013
    Posts
    21
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    That worked perfectly. Thanks so much.

Similar Threads

  1. JavaScript and/or CSS solution
    By Sebah in forum JavaScript
    Replies: 2
    Last Post: 07-18-2010, 09:03 PM
  2. css solution?
    By nikomou in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 12-28-2008, 03:01 PM
  3. Probably an easy solution...
    By UltraMegaOK1988 in forum JavaScript
    Replies: 2
    Last Post: 09-06-2008, 06:47 PM
  4. nobody got solution for this :(
    By lxl__dj.anish__lxl in forum Looking for such a script or service
    Replies: 7
    Last Post: 02-25-2007, 12:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •