Web Hosting Talk







View Full Version : index.swf HELP!!!!!!


Cael
03-20-2001, 06:13 AM
One of my clients want to use index.swf as the default index page. I added .htaccess in his web folder...


DirectoryIndex index.swf index.html index.htm


Then, when I typed in hisdomain.com , yes, I am redirected to index.swf. But the flash page is loaded as a text page and lots of weird signs in the page. But the flash page loads ok if I typed in hisdomain.com/index.swf ...

anyone hv any idea to fix this ?

allan
03-20-2001, 09:09 AM
The easiest way is to create an index.html file that looks like this:

<HEAD>
<TITLE>Welcome to our Site</TITLE>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META http-equiv="expires" content="Sat, 1 Jan 2000 00:00:00 GMT">
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=http://www.domain.com/index.swf">
</HEAD>
<BODY BGCOLOR="FFFFFF">
&nbsp;
</BODY>
</HTML>

Cael
03-21-2001, 06:48 AM
Yea... I am using it as a temporary solution for my client.

I do think that there are other ways instead of creating a .html file and load index.swf. Anyone ?

allan
03-21-2001, 07:26 AM
I don't know if this will work, and personally, I detest flash :). But can you load the swf file within a page, similar to a Server Side Include, or use it as part of a frameset (which is how I think most people do the skip intro part of the page).

I'd like to see an answer to this as well, since I'm sure it will come up eventually, and it would make a good knowledgebase questions :).

kunal
03-21-2001, 10:53 AM
wouldnt something like this work??

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="32" height="32">
<param name=movie value="moviename.swf">
<param name=quality value=high>
<embed src="moviename.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="32" height="32">
</embed>
</object>
</body>
</html>

allan
03-21-2001, 11:01 AM
Kunal,

I don't think most browsers support the :D icon :D.

[Edited by uuallan on 03-21-2001 at 10:36 PM]

kunal
03-21-2001, 11:13 AM
Originally posted by uuallan
Kunal,

I don't think most brosers support the :D icon :D.

wups..

Chicken
03-21-2001, 11:15 PM
LOL... so *that's* why none of my code works :)

Cael
03-22-2001, 06:39 AM
Wahahahahahhaaa