Pink Poogle Toy Forum

The official community of Pink Poogle Toy
Main Site
NeoDex
It is currently Mon Nov 25, 2024 7:20 am

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Ugh... XP! Kind of HTML/Java Help.
PostPosted: Wed Aug 17, 2005 11:58 am 
Honorary Member
Honorary Member
User avatar

Posts: 2116
Joined: Mon May 31, 2004 10:25 am
Location: Melb, Australia
Okay im designing a website. Fair enough.

In the pages im trying to have the corner images random (From a selection of a few). Whenever I vew this page I get the...

Quote:
To help protect your security, Internet Explorer has restrictedt his file from showing active content that could access your computer. Click here for options...


If you've got XP i'm guessing you know what ii'm talking about, its the annoying error thing or whatever that appears when it says its stopped a download that could *harm* my computer. Well anyway, its doing it on my website that i'm designing on my computer. The infinite stupidity of windows asssumes that a website i'm veiwing in my E:/ drive is trying to hack my computer. Dear god.

Anyway, I've got two questions, how can i stop that from popping up, and whats wrong with my java code thats making this happen? I got it from some free script site, but i've tried several now and each does the same thing. The code i'm using right now is...

Quote:
<script language="JavaScript">
<!--
// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================

// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!

theImages[0] = 'images/layout/rightimage.gif'
theImages[1] = 'images/layout/rightimage2.gif'


var j = 0
var p = theImages.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}

var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}

//-->
</script>


Thats in the header, and this is where the image appears...

Quote:
<script language="JavaScript">
<!--
// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================
showImage();
//-->
</script>


Tis being rather pooey eh! Can anyone give me any suggestions, or show us a code that doesn't create this problem? I dont want to just go ahead and fix it for myself, i'm now worried if anyone views the site they'll have the same problem. Not good!


Do you miss Bill? I miss Bill. Go to this thread to petition Bill Back!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 14, 2005 5:19 pm 
PPT Trainee
PPT Trainee
User avatar

Posts: 507
Joined: Sat Oct 23, 2004 11:10 am
My first advice would be to switch to Firefox. It generally has far fewer problems of this nature.

Now, before I answer the question, I'd just like to say that I'm a Linux person, and so I can't test this or be certain of it, but I'm pretty sure I heard that this is because of new (stupid) default settings introduced in XP SP2. For some reason your local hard drive is considered less trusted than the internet. You can fix this by changing your settings, but when it's on the internet no one should have any problems.

...I think. You'll definitely want to test it yourself to make sure.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 14, 2005 9:32 pm 
PPT Trainee
PPT Trainee
User avatar

Posts: 500
Joined: Fri Oct 22, 2004 1:02 pm
Location: The Internet
Try clicking here for options and seeing if you can make it always allow from this 'website', or if you can edit the filter settings to let it always open stuff from E:\. I don't have XP, so I couldn't tell you exactly. If there's a setting, there's (always) a way to bypass it.


Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 26, 2005 2:26 pm 
PPT Toddler
PPT Toddler
User avatar

Posts: 162
Joined: Sun Aug 01, 2004 11:14 pm
Location: Sweden
Do you really need that little javascript? Maybe there is another way of doing it, perhaps server side?


http://ibisaeg.mine.nu
<silja rox my sox>... somewhat :P


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group