File Problems

windows

Guest
I am having problems with this file:<br />
<!-- m --><a class="postlink" href="http://www.angelfire.com/realm3/htmlnewbie/images/DataProbe.swf">http://www.angelfire.com/realm3/htmlnew ... aProbe.swf</a><!-- m --> The problem is that it is a .swf file. My host does not support this type of file. What can I do? <br />
<br />
Link to file page (<!-- m --><a class="postlink" href="http://www.angelfire.com/realm3/htmlnewbie/images/DataProbe.swf">http://www.angelfire.com/realm3/htmlnew ... aProbe.swf</a><!-- m -->)<!--content-->*g* Neat! Hmmm.... I'm not sure that there's a whole lot you can do. Does Angelfire permit Flash files? You might have to resort to that, or turning it into a simple java script rollover file. Probably the java script would be your best bet. <br />
<br />
Peg<!--content-->Sorry to sound so stupid, but how would I go about doing that?<!--content-->i don't get what your asking, i clicked your link and it worked fine? Or are you saying that you want that on another host? If yes what host are you with?<br />
<br />
Secondly, to create a javascript roll over, you could either learn javascript or get a roll over program. There is many out there just have to search for one.<!--content-->Originally posted by goldieboy <br />
Sorry to sound so stupid, but how would I go about doing that? To be honest, I'm not sure how the images would be done in Flash. I've never used it.<br />
<br />
A rollover script, though, is fairly simple. *g* Sort of. This is what it looks like:<br />
<br />
<head><br />
<script language="JavaScript"><br />
<!--<br />
function MM_swapImgRestore() { //v3.0<br />
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=http://www.htmlforums.com/archive/index.php/x.oSrc;<br />
}<br />
<br />
function MM_preloadImages() { //v3.0<br />
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();<br />
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)<br />
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=http://www.htmlforums.com/archive/index.php/a;}}<br />
}<br />
<br />
function MM_findObj(n, d) { //v3.0<br />
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {<br />
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}<br />
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];<br />
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document); return x;<br />
}<br />
<br />
function MM_swapImage() { //v3.0<br />
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)<br />
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=http://www.htmlforums.com/archive/index.php/x.src; x.src=a[i+2];}<br />
}<br />
//--><br />
</script><br />
</HEAD><br />
<br />
<BODY BGCOLOR="#FFFFFF" onLoad="MM_preloadImages('image1a.jpg')"><br />
<P><A HREF=http://www.htmlforums.com/archive/index.php/"page1.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','image1a.jpg',1)"><br />
<IMG NAME="Image1" BORDER="0" SRC=http://www.htmlforums.com/archive/index.php/"image1.jpg" WIDTH="32" HEIGHT="32"></A></P><br />
<br />
<br />
The first part of the script goes into the <head> tags. The rest of the code goes with the link.<br />
<br />
You'd have to create 2 images of everything, one "normal" and one for the image that appears when the mouse rolls over it. The "image1.jpg" in the script would be the first image seen, and "image1a.jpg" would be the rollover image. You'd just have to replace those two with whatever image you're using. And, it doesn't have to be a .jpg, either. You could use animated gifs instead, if you preferred. And don't forget to change the URL for the link and the height and width attributes for your image. <br />
<br />
If you copy this code out, make sure that the words "Java" and "script" are together as one word. There's a filter in the forums that keeps people from putting working script in their posts which separates the words.<br />
<br />
Does that help? <br />
<br />
Peg<!--content-->Use<br />
<br />
<br />
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"<br />
codebase="$FLASH_CODEBASE" height="$YOUR_SWF_WIDTH" height="$YOUR_SWF_HEIGHT"><br />
<param name="movie" value="$YOUR_SWF_FILE" /><br />
<embed play="true" src=http://www.htmlforums.com/archive/index.php/"$YOUR_SWF_FILE" quality="high" bgcolor="%YOUR_HEX_VALUE_BACKGROUND_COLOR" width="$YOUR_SWF_WIDTH" height="$YOUR_SWF_HEIGHT" type="application/x-shockwave-flash"></embed><br />
</object><br />
<br />
<br />
and replace all '$' variables (like animation name ('foo.swf'), width, height etc.). I am no friend of Flash (and I don't use it either), so maybe some values are unnecessary or even missing. Check some tutorials.<br />
<br />
Remark: Both <embed /> and <object /> elements do the same thing, but it is recommended using both because <embed /> is IMHO only recognized by Netscape, and the other only by Internet Explorer.<br />
<br />
@Pegasus: Why did you reference to a Macromedia rollover script? I only scanned your contribution but I thought this was off topic... CMIIW.<br />
<br />
<br />
Regards,<br />
Jens.<!--content-->Originally posted by jens.meiert <br />
Why did you reference to a Macromedia rollover script? I only scanned your contribution but I thought this was off topic... CMIIW. <br />
<br />
Really? Off topic? Read the posts again carefully. Including the part of my second post that's quoted: "How do I do that?" From my experience, hosts like Angelfire can be rather ugly about shockwave files, and if you don't have the plug-in for them, it won't work anyway.<br />
<br />
As for it being a Macromedia script, I find those work just as well as any other script and, sometimes, much better than the "imbed" or "object" scripts. It was the first one I had to hand.<br />
<br />
Peg<!--content-->
 
Back
Top