This example describes the Banner graph switching effect code implemented by the website based on flash. The main switching function of this example is completed by flash. Share it for your reference.
The specific implementation code is as follows:
Copy the code as follows:<!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=utf-8" />
<title>Website Banner image switching effect (flash)</title>
</head>
<body>
<script type="text/javascript" src="js/swfppt.js"></script>
<script type="text/javascript">
//<!CDATA[[
loadswfppt({width:400,height:450,text_height:0,
pic:[
{img:'images/banner1.jpg',text:'01',link:'img3.html'},
{img:'images/banner2.jpg',text:'02',link:'img4.html'},
{img:'images/banner3.jpg',text:'03',link:'img5.html'}
]});
//]]>
</script>
</body>
</html>
The operation effect is shown in the figure below:
Click here to download the complete example code.
I hope this article will be helpful to everyone's web programming.