Jon-Mychael Best

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromJon-Mychael Best
ToMe
Subject2 fairly simple questions about the automated img roll
Date26 April 2006 14:39
Attachmentdemo page
I'm extremely new to JavaScript and somewhat familiar with HTML, and by the
way, I found your site extremely helpful!  I also apologize for having to
send the attachments, I can't upload this code until it completely works.

My first question is whenever I am in IE6 for SP2, I get the security bar at
the top saying the it blocked the active content, but your tutorial does not
do that.  Is there something that I am doing wrong/need to add?

Lastly, I was having much trouble getting the code to work, and I think that
once I downloaded the imgpreld.js and imgroll.js files it started working
(I'm probably wrong on that), but if this is true, does that mean that 1.
everyone trying to view this in IE6 will have to allow the content and 2.
download the two scripts?

I appreciate the timely response I'm sure I'll get and just the fact that
you take the time to help JavaInfants like me!

Jon B
FromMe
ToJon-Mychael Best
SubjectRe: 2 fairly simple questions about the automated img roll
Date26 April 2006 19:16
Jon,

> My first question is whenever I am in IE6 for SP2, I get the security
> bar at the top saying the it blocked the active content, but your
> tutorial does not do that.

IE 6 on XP SP 2 will do this as long as you are viewing pages on your local
disk. It will not do it when you upload it to a proper Web site.

You can also disable this security mis-feature:
Tools - Internet Options - Advanced - Security; "Allow active content to run
in files on My Computer"

> does that mean that everyone trying to view this will have
> to download the scripts?

No. You are only using imgRoll.js
You should save a copy of the script onto your own disk, then upload it onto
your web site.
The SRC attribute of the script tag behaves like the SRC attribute for an
<img> tag. Just make sure that there is a copy of the script on your server,
and that the script's SRC attribute points to it. Their browser will
automatically load it from your web site.


Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.