9
Contributors
14
Replies
15
Views
7 Years
Discussion Span
Last Post by ArtistScope
0

hehe ……you can use <embed>market,like this:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="32" height="32" title="ceshi">
  <param name="movie" value="file:///C|/Documents and Settings/Administrator.WWW-8211E7B1369/桌面/颜色.rtf.swf" />
  <param name="quality" value="high" />
  <embed src="file:///C|/Documents and Settings/Administrator.WWW-8211E7B1369/桌面/颜色.rtf.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32"></embed>
</object>

use Macromedia Dreamweaver ,you can do it easy

Edited by Ezzaral: Added code tags. Please use them to format any code that you post.

0

hello sir ...
I want to know something about asp...
how can i add .swf file into the asp page..

hi P. Kumar

1. first download the swfobject.js, use google to find a current version and install it into your page in the header.

2. here is an example of where the flash will be displayed in your page, if flash is not available then an "enable javascript and download flash" is displayed along with a link to get the flash player.

<div id="flashcontent">Enable JavaScript and download <a href="http://www.macromedia.com/go/getflashplayer/">Flash Player.</a></div>

3. inside "script" tags you create the SWFobject. This is an example of from the simpleviewer photo album script. The SWF object is stored in a javascript variable "fo"

var fo = new SWFObject("viewer.swf", "viewer", "600px", "800px", "8", "#000000");

4. You dynamically write the flash content (SWF) stored in the "fo" variable to the HTML tag ("flashcontent" in this example).

fo.write("flashcontent");
0

The script uses ActiveX file Scripting object to scroll through a directory of images on the server. if the folder exists then get the image files from that directory and output to HTML IMG tag.

// establish the file scripting object
var fSO = new ActiveXObject("Scripting.FileSystemObject");

// if the directory is present
if (fso.folderExists("[directory of images]")){

// get the folder of images
var f = fso.GetFolder("[directory of images]");

// get all the files in the directory.  The Enumerator Function is better than having to store the results to an array then scrolling the array.
var fc = new Enumerator(f.files);

// scroll through the files and only output the ones with the extension being an image extension to HTML IMG tag.
}
0

Both are Server Side scripting languages, and accomplish the same tasks.

PHP is probably more widely used on Unix hosts which tend to be cheaper.

ASP/ASP.NET is specific to Windows Servers. ASP/ASP.NET has much more advanced features and requires a higher learning curve.

Most developers make their choice probably based on the platform that their server or database is running.

I generally use Access or MSSQL database on Windows Servers, so my scripting language of choice is ASP.

Edited by AceDesignz: n/a

0

No, it doesn't matter if it's asp, same html code

The simplest way is this:

<object type="application/x-shockwave-flash" width="400" height="300" data="flash.swf">
<param name="movie" value="flash.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
</object>

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.