active x problem

This is a discussion on "active x problem" within the Web Page Design section. This forum, and the thread "active x problem are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 19th, 2006, 08:05
New Member
Join Date: Mar 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
active x problem

Hi there,

I got this great little piece of code that basically does a slow fade from one image to another to another. It works great, but every time I test the page I get that annoying banner across the top telling me that my active x control has been blocked automatically and I have to right click and allow it. And the image effect wont run at all until I go through this pain. I have websites that dont do this, what am I doing wrong?

Is there something I can do so that when I post this page that the page will run without having to unblock active x controls?


THANKS!!!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script language="JavaScript1.1">
<!--
//*****************************************
// Blending Image Slide Show Script-
// © Dynamic Drive (www.dynamicdrive.com)
// For full source code, visit http://www.dynamicdrive.com/
//*****************************************
//specify interval between slide (in mili seconds)
var slidespeed=3000
//specify images
var slideimages=new Array("image1.jpg","image2.jpg","image3.jpg")
//specify corresponding links
var slidelinks=new Array("http://www.dynamicdrive.com","http://javascriptkit.com","http://www.geocities.com")
var newwindow=1 //open links in new window? 1=yes, 0=no
var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}
function gotoshow(){
if (newwindow)
window.open(slidelinks[whichlink])
else
window.location=slidelinks[whichlink]
}
function ExpanderClicked()
{
//Get the element that was clicked
var ctlExpander = event.srcElement;
var ctlSelectedEntry = ctlExpander.parentElement;
//Get all the DIV elements that are direct descendants
var colChild = ctlSelectedEntry.children.tags("DIV");
if(colChild.length > 0)
{
var strCSS;
//Get the hidden element that
//indicates whether or not entry is expanded
var ctlHidden = ctlSelectedEntry.all("hidIsExpanded");

if(ctlHidden.value == "1")
{
//Entry was expanded and is being contracted
//ctlExpander.innerHTML = "+ ";
//"BACKGROUND-IMAGE: url(Graphics\Expand.bmp); WIDTH: 10px";
ctlExpander.style.backgroundImage = 'url(Graphics/closed.jpg)';
ctlHidden.value = "0";
strCSS = "SubMenuNotVisible";
}
else
{
//Entry is being expanded
//ctlExpander.innerHTML = "- ";
ctlExpander.style.backgroundImage = 'url(Graphics/open.jpg)';
ctlHidden.value = "1";
strCSS = "SubMenuChild";
}
//Show all the DIV elements that are direct children
for(var intCounter = 0; intCounter < colChild.length; intCounter++)
{
colChild[intCounter].className = strCSS;
}
}
}

//-->
</script>

<style type="text/css">
<!--
body {
background-color: #999999;
margin-left: 250px;
margin-top: 0px;
}
-->
</style></head>
<body>
<script language="JavaScript1.1">
</script>
<a href="javascript:gotoshow()"><img src="image1.jpg" name="slide" width=605 height=304 border=0 align="absmiddle" style="filter:blendTrans(duration=3)" /></a>
<script language="JavaScript1.1"><!--
var whichlink=0
var whichimage=0
var blenddelay=(ie)? document.images.slide.filters[0].duration*1000 : 0
function slideit(){
if (!document.images) return
if (ie) document.images.slide.filters[0].apply()
document.images.slide.src=imageholder[whichimage].src
if (ie) document.images.slide.filters[0].play()
whichlink=whichimage
whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
setTimeout("slideit()",slidespeed+blenddelay)
}
slideit()
//-->
</script>
</body>
</html>
Reply With Quote

  #2 (permalink)  
Old Jul 19th, 2006, 14:04
minute44's Avatar
Moderator
Join Date: Apr 2006
Location: Nottingham UK
Age: 25
Posts: 1,350
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: active x problem

It's basically down to the security levels of the PC. Javascript being a client side scripting langualge, causes IE on a higher security setting to freak out.

Unavoidable really...

Sorry
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Reply With Quote
  #3 (permalink)  
Old Jul 19th, 2006, 15:13
Highly Reputable Member
Join Date: Aug 2005
Location: 3rd Branch Up, Old Oak.
Age: 48
Posts: 658
Thanks: 0
Thanked 0 Times in 0 Posts
Re: active x problem

Have you tried to publish the page and then view it?
I often get that message with the javascripts I use because I'm testing them from my own local machine.
Soon as they're published my security recognises the script isn't being run from within my machine and Robert becomes my Mother's Brother.
Reply With Quote
  #4 (permalink)  
Old Jul 19th, 2006, 16:32
New Member
Join Date: Mar 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: active x problem

Oh man! That did the trick! I didnt even think about publishing first. You are the man! ( unless of course you are female...than you are the woman!)

Thanks again!
Reply With Quote
Reply

Tags
active, problem

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Movieclip button active state problem !! Help Please !! alladeen Flash & Multimedia Forum 6 Oct 25th, 2007 14:40
How do I get people active and keep them active? TheSealPortalTeam Webforumz Cafe 4 May 9th, 2007 10:17
CSS - a:active ruffy Web Page Design 3 Nov 2nd, 2006 08:50
Problem with showing active text in .net table? JayHegUK ASP.NET Forum 4 Sep 7th, 2006 20:52
IE active content flash validation problem edd_jedi Flash & Multimedia Forum 5 Jul 20th, 2006 23:01


All times are GMT. The time now is 16:15.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43