Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Reconfiguring the script

  1. #11
    Join Date
    Jan 2007
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I Am Almost There . . .

    wonderful instructions TestinSite! Please see: http://www.cartoonfile.net/fishing_cartoons.htm and I am configuring for image 3 and did the 'do Tooltip (event,2)' to display image 3 but as you'll notice, it comes on screen as small black square. I am so close! I got this figured out, just need the right number sequence and I'm on my way! . . .
    Any feedback as always, is appreciated . . .

  2. #12
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    In your script, you have a ton of these:

    Code:
    messages[1]
    messages[2]
    messages[1]
    messages[2]
    Over and over again. The last line of the messages array is messages[2] = ('test.gif','Test Description'); or something to that effect. Finish editing the script with all the new numbers and whatnot, then see if it still causes problems.

    Hope this hels.
    Last edited by thetestingsite; 01-27-2007 at 03:44 PM.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #13
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Looks like you've got it. Time for two additions to make your page work in other browsers like FF and Opera (additions/changes are red in the below that is taken from your page's source code):

    Code:
    var dom = (document.getElementById) ? true : false;
    var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
    var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1||window.opera) && dom) ? true : false;
    var ns4 = (document.layers && !dom) ? true : false;
    var ie4 = (document.all && !dom) ? true : false;
    var nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;
    
    // resize fix for ns4
    var origWidth, origHeight;
    if (ns4) {
    	origWidth = window.innerWidth; origHeight = window.innerHeight;
    	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
    }
    
    // avoid error of passing event object in older browsers
    if (nodyn) { event = "nope" }
    
    ///////////////////////  CUSTOMIZE HERE   ////////////////////
    // settings for tooltip 
    // Do you want tip to move when mouse moves over link?
    var tipFollowMouse= true;	
    // Be sure to set tipWidth wide enough for widest image
    var tipWidth= 500;
    var offX= 20;	// how far from mouse to show tip
    var offY= 12; 
    var tipFontFamily= "Verdan
    Note: With:

    Code:
    var tipWidth= 500;
    500 is just my best guess, it should be the width of the widest image (cartoon) that you have.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #14
    Join Date
    Jan 2007
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Special THANKS, to: TestingSite, Jonnyynnoj & John . . .

    So you fellas know what I had intended this script for, please visit the finished layout: http://www.cartoonfile.net/fishing_cartoons.htm and if there is any criticism, I am thick skinned. The unique aspect of this script, is the fact a visitor would have a hard time grabbing or right-click / copying the image onscreen . . . and it also allows for the visitor to quickly browse as opposed to clicking through a complete photogallery. Alas, I think I have the gist of it understood . . .like with anything new, a bit frustrating but I keep at it & get your assistance. Mucho appreciated . . .

  5. #15
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Not a problem at all, let us know if you need any more help. The only other thing that I could say to do with it, is what I had said in one of my previous posts and what John had posted in his most recent post. The tooltip width item. Other than that, don't know what to tell you.
    Last edited by thetestingsite; 01-28-2007 at 03:47 AM.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

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
  •