Tag: dynamic | Preview mode: Common | Row form

Dynamic content slide show JavaScript effect

This JavaScript creates a slide-show effect displaying different content dynamically. The content fades in while being displayed. Works in MSIE.

<SCRIPT LANGUAGE="JavaScript">
var js_text_content = new Array ("Hello!", "Wellcome to here", "FoxArc Software", "
http://www.foxarc.com");
var content_width = 300; // The width of the content space
var content_height = 30; // The height of the content space
var content_borderw=2; // Border width
var content_borderc="#E0E0E0"; // Border Color
var timeOutVal=200; // Delay in milliseconds

document.write('<table width="' + content_width + '" height="' + content_height + '" style="background:#FFFFFF; border:' + content_borderw + ' solid ' + content_borderc + '"><tr><td align="middle">');
document.write('<div id="content_effect">');
document.write('</div>');
document.write('</td></tr></table>');

var def_10='A',def_11='B',def_12='C',def_13='D',def_14='E',def_15='F';
var colorVal=15;
var div_count=0;

Click here to read this article...

Tags: dynamic content slide show JavaScript effect

Categorize: Javascript | Link | Comment:0 | Read times: 471

Create dynamic button with actionscript

In this article,  I want to talk about how to create dynamical button in actionscript. No design tools needed, just actionscript code.  see the following example, I hope it will be helpful to you.

//draw an button
var drawArea:Array = [[0, 0], [100, 0], [100, 20], [0, 20], [0, 0]];
this.createEmptyMovieClip("btn",0);
btn.beginFill("0x000000",100);
for (i=0; i<drawArea.length; i++) { 
i == 0 ? btn.moveTo(drawArea[i][0], drawArea[i][1]) : btn.lineTo(drawArea[i][0], drawArea[i][1]);

btn.endFill(); 


 //set position of the button
btn._x = (Stage.width/2)-btn._width/2;
btn._y = (Stage.height/2)-btn._height/2;
// button methon
btn.onRelease = function() { 
getURL("
http://www.foxarc.com", "_blank");
};

Tags: actionscript dynamic button

Categorize: Flash | Link | Comment:0 | Read times: 39