网页制作中,内链接怎么链?最好是有视频的
发布网友
发布时间:2022-04-20 11:16
我来回答
共3个回答
热心网友
时间:2023-08-04 05:55
Dreamweaver自带视频播放和音乐播放标签,视频格式为flv格式,其他的好像不支持。音乐为mp3格式。一些视频网站是搭载了播放器。下面代码可以参考,路径要修改。
<!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=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
background-image: url(13.jpg);
}
.STYLE1 {font-size: 36px}
-->
</style>
<script type="text/javascript">
function MM_CheckFlashVersion(reqVerStr,msg){
with(navigator){
var isIE = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
if (!isIE || !isWin){
var flashVer = -1;
if (plugins && plugins.length > 0){
var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
if (desc == "") flashVer = -1;
else{
var descArr = desc.split(" ");
var tempArrMajor = descArr[2].split(".");
var verMajor = tempArrMajor[0];
var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
flashVer = parseFloat(verMajor + "." + verMinor);
}
}
// WebTV has Flash Player 4 or lower -- too low for video
else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;
var verArr = reqVerStr.split(",");
var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
if (flashVer < reqVer){
if (confirm(msg))
window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
}
}
}
}
</script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body onload="MM_CheckFlashVersion('9,0,28,0','本页内容需要使用较新的 Adobe Flash Player 版本。是否现在下载它?');">
<table width="1292" height="118" border="1">
<tr>
<th width="1282" height="112" scope="col"><span class="STYLE1">个人简历</span></th>
</tr>
</table>
<table width="1292" height="415" border="1">
<tr>
<th width="221" height="409" align="center" valign="top" scope="col"><p>
<embed src="简单爱 - 童声版.mp3" width="231" height="42"></embed>
</p>
<p>
</p>
<p>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','400','height','325','src','abc','quality','high','flashvars','flashlet={imageLinkTarget:\'_blank\',captionFont:\'Verdana\',titleFont:\'Verdana\',showControls:true,frameShow:false,slideDelay:3,captionSize:10,captionColor:#333333,titleSize:10,transitionsType:\'Random\',titleColor:#333333,slideAutoPlay:true,imageURLs:[\'13.jpg\',\'14.jpg\',\'15.jpg\',\'gf.jpg\',\'hjb.jpg\',\'jhh.png\',\'ps.jpg\',\'re.jpg\',\'u=999293436,3595713106\\&fm=24\\&gp=0.jpg\',\'ps.jpg\'],slideLoop:false,frameThickness:2,imageLinks:[\'http://macromedia.com/\',\'http://macromedia.com/\',\'http://macromedia.com/\'],frameColor:#333333,bgColor:#FFFFFF,imageCaptions:[]}','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','flash_component','ImageViewer.swc','movie','abc' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="400" height="325">
<param name="flash_component" value="ImageViewer.swc" />
<param name="movie" value="abc.swf" />
<param name="quality" value="high" />
<param name="FlashVars" value="flashlet={imageLinkTarget:'_blank',captionFont:'Verdana',titleFont:'Verdana',showControls:true,frameShow:false,slideDelay:3,captionSize:10,captionColor:#333333,titleSize:10,transitionsType:'Random',titleColor:#333333,slideAutoPlay:true,imageURLs:['13.jpg','14.jpg','15.jpg','gf.jpg','hjb.jpg','jhh.png','ps.jpg','re.jpg','u=999293436,3595713106\&fm=24\&gp=0.jpg','ps.jpg'],slideLoop:false,frameThickness:2,imageLinks:['http://macromedia.com/','http://macromedia.com/','http://macromedia.com/'],frameColor:#333333,bgColor:#FFFFFF,imageCaptions:[]}" />
<embed src="abc.swf" quality="high" flashvars="flashlet={imageLinkTarget:'_blank',captionFont:'Verdana',titleFont:'Verdana',showControls:true,frameShow:false,slideDelay:3,captionSize:10,captionColor:#333333,titleSize:10,transitionsType:'Random',titleColor:#333333,slideAutoPlay:true,imageURLs:['13.jpg','14.jpg','15.jpg','gf.jpg','hjb.jpg','jhh.png','ps.jpg','re.jpg','u=999293436,3595713106\&fm=24\&gp=0.jpg','ps.jpg'],slideLoop:false,frameThickness:2,imageLinks:['http://macromedia.com/','http://macromedia.com/','http://macromedia.com/'],frameColor:#333333,bgColor:#FFFFFF,imageCaptions:[]}" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="400" height="325"> </embed>
</object>
</noscript>
</p></th>
</tr>
</table>
<table width="1121" height="445" border="1">
<tr>
<th scope="col"><blockquote>
<blockquote>
<p> </p>
</blockquote>
</blockquote>
<p align="center">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','width','900','height','900','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=%E4%B8%96%E7%95%8C%E6%9C%AB%E6%9C%AB%E6%97%A5&autoPlay=false&autoRewind=false','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','FLVPlayer_Progressive' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="900" height="900" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="salign" value="lt" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=%E4%B8%96%E7%95%8C%E6%9C%AB%E6%9C%AB%E6%97%A5&autoPlay=false&autoRewind=false" />
<embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=%E4%B8%96%E7%95%8C%E6%9C%AB%E6%9C%AB%E6%97%A5&autoPlay=false&autoRewind=false" quality="high" scale="noscale" width="900" height="900" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />
</object>
</noscript>
</p> <blockquote>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<p> </p>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote></th>
</tr>
</table>
</body>
</html>
热心网友
时间:2023-08-04 05:55
你期望的效果是什么,用A标签去写,效果将是,点开然后使用本地软件打开了该音乐或者视频。
你可以这样写:
<a href="D:\music\a.mp3" >点此打开音乐</a>
如果是在网页中播放该多媒体文件,需要使用以下代码:
<embed src="D:\music\a.mp3" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="10"></embed>
URL就是这里的 D:\music\a.mp3 ;英文Uniform / Universal Resource Locator (网页路径)
热心网友
时间:2023-08-04 05:56
在网上找个简单的播放器代码,放进代码就行