The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 2 of 2

Thread: Javascript: Annoying warning

  1. #1

    Javascript: Annoying warning

    Ok. I created an innocent Javascript gallery and everytime I access it using Internet Explorer the annoying microsoft warning with a yellow bar comes out: To help protect your security, blah blah bla.

    Im creating this website for a customer but i dont want to tell him that everytime someone sees the page they have to allow the active content. in the tutorial I saw, no warning messages were displayed to me.

    how can i make that warning message not appear? here is the tutorial:
    http://javascript.about.com/od/funwithimages/a/roll.htm

    here is the code:
    img.js
    if (document.images) {
    image0 = new Image;
    image1 = new Image;
    image2 = new Image;
    image3 = new Image;
    image4 = new Image;
    image0.src = 'industrial/crossing.jpg';
    image1.src = 'industrial/danolca.jpg';
    image2.src = 'industrial/godan.jpg';
    image3.src = 'industrial/norteamex.jpg';
    image4.src = 'industrial/refrodi.jpg';
    } else {
    image0 = '';
    image1 = '';
    image2 = '';
    image3 = '';
    image4 = '';
    document.rollimg = '';
    }

    HERE IS THE GALLERY PAGE CODE:

    HTML Code:
    <p align="center">
    <span onmouseover="document.rollimg.src=image0.src;"><img src="industrial/thumb_crossing.jpg" width="120" height="90" border="0" alt="1" /></span>
    <span onmouseover="document.rollimg.src=image1.src;"><img src="industrial/thumb_danolca.jpg" width="120" height="90" border="0" alt="2" /></span>
    <span onmouseover="document.rollimg.src=image2.src;"><img src="industrial/thumb_godan.jpg" width="120" height="90" border="0" alt="3" /></span>
    <span onmouseover="document.rollimg.src=image3.src;"><img src="industrial/thumb_norteamex.jpg" width="120" height="90" border="0" alt="3" /></span>
    <span onmouseover="document.rollimg.src=image4.src;"><img src="industrial/thumb_refrodi.jpg" width="120" height="90" border="0" alt="3" /></span>
    </p>
    <p align="center"><img src="industrial/crossing.jpg" alt="Larger version of one of the smaller images above" name="rollimg" width="400" height="300" border="0" /></p> 
    Thanks in advance,

    Leo
    "You are playing a very dangerous game"
    "Change always is"

    Creativo Development

  2. #2
    183
    posts
    Registered User
    This message only appears when you are accessing the file locally.

    It should not appear when you access it from the web

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012