Keblinger

Keblinger
Design your thoughts

png FIX

0
| Wednesday, March 23, 2011

<!--[if lt IE 7]>
<script defer type="text/javascript" src="pngfix_map.js"></script>
<![endif]-->







 
http://homepage.ntlworld.com/bobosola/imagemap.htm

Action Script 3.0 (Loading file from outside the swf)

0
| Tuesday, March 22, 2011
/*Mouse.hide();
stage.addEventListener(Event.ENTER_FRAME,ff);
function ff(e:Event):void{
dd.x=mouseX;
dd.y=mouseY;
}*/

stage.scaleMode = StageScaleMode.NO_SCALE;


dd.addEventListener(MouseEvent.ROLL_OVER,btn1Over);
dd.addEventListener(MouseEvent.ROLL_OUT, btn1Out);
dd.addEventListener(MouseEvent.CLICK, btn1Click);

function btn1Over(event:Event):void {
    dd.gotoAndPlay("over");
}

function btn1Out(event:Event):void {
    dd.gotoAndPlay("out");
}

function btn1Click(event:Event):void {
    dd.gotoAndPlay("click");
}

var loade:Loader=new Loader();

dd.addEventListener(MouseEvent.CLICK,mm);
dd1.addEventListener(MouseEvent.CLICK,f1);
dd2.addEventListener(MouseEvent.CLICK,f2);
dd3.addEventListener(MouseEvent.CLICK,f3);

function mm(e:MouseEvent):void {
    var ui:URLRequest=new URLRequest ("cat-buttons.jpg");
    loade.load(ui);
    uiloader.addChild(loade);
}

Action Script 3.0 (mouse pointer)

0
|
This script is using for to hide the mouse pointer and show what ever image we can given other than mouse pointer. Lets check..

//Mouse.hide();
stage.addEventListener(Event.ENTER_FRAME,ff);
function ff(e:Event):void{
aa.x=mouseX;
aa.y=mouseY;

Action Script 3.0 (no scaling property)

0
|
This AS3 code is using for no scaling property in a flash website or any flash presentations

stage.scaleMode = StageScaleMode.NO_SCALE;

Action Script 3.0 (Button link code)

0
|
This script is use for the button link for a specific animation : -


btn1.addEventListener(MouseEvent.ROLL_OVER,btn1Over);
btn1.addEventListener(MouseEvent.ROLL_OUT, btn1Out);
btn1.addEventListener(MouseEvent.CLICK, btn1Click);

function btn1Over(event:Event):void{
btn1.gotoAndPlay("over");
}

function btn1Out(event:Event):void{
btn1.gotoAndPlay("out");
}

function btn1Click(event:Event):void{
btn1.gotoAndPlay("click");
}

Open Popup window in html page

0
|
Open a fullscreen window in the specific part Copy and paste the script in specific area you needed.. 


<td><a href="javascript:void(0)"
onclick="window.open('Copy of Untitled-1.html',
'welcome','width=300,height=200,scrollbars=yes')">
Open a full screen window</a>
</td>

marquee

0
|
<marquee behavior="slide"  direction="left"  scrollamount="5"  >Your slide-in text goes here</marquee>

arrage the width and size

0
|
<div style="height:190px;width:460px;overflow:scroll;background-color:#CCCCCC; scrollbar-base-color:#b49948;">
  <p>We have added a background color to this HTML scroll box. This is done using the CSS 'background-color' property.</p>
  <p>We have added a background color to this HTML scroll box. This is done using the CSS 'background-color' property.</p>
  <p>We have added a background color to this HTML scroll box. This is done using the CSS 'background-color' property.</p>
  <p>We have added a background color to this HTML scroll box. This is done using the CSS 'background-color' property.</p>
</div>

I frame

0
|
<iframe src="../NEW 3/HTML/home.html" width="550" height="200"></iframe>

Language Change in Website

1
| Tuesday, March 8, 2011
Translate Your web site using Google Translate


This script will help to change the language.,


<div id="google_translate_element">  </div>
<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en'
}, 'google_translate_element');
}
</script>

<script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
 

Copyright © 2010 Webdesigners Corner Blogger Template by Dzignine