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.
|
|
|
|
|
![]() |
||
active x problem
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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> |
|
|
|
||||
|
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)
|
|
|||
|
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. |
![]() |
| Tags |
| active, problem |
| Thread Tools | |
|
|
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 |