I Flash
(Denna nya kategori är till för mig då jag kan återanvända sådant jag lärt mig, hehe.. men självklart kan ni ta dem om ni så vill)
Användbart i Flash då du vill få knappsystemet att fungera i t.ex hemsidor på webben
var bildNummer:Number = 1
function kollaBildnummer():void{
next_btn.visible = true;
back_btn.visible = true;
if(bildNummer==12){
next_btn.visible = false;
}
if(bildNummer==1){
back_btn.visible = false;
}
}
kollaBildnummer();
next_btn.addEventListener(MouseEvent.CLICK, nextImage);
function nextImage(evt0bj:MouseEvent):void{
bildNummer++;
bildgalleriBildbyte.source = "bildgalleri/bild "+bildNummer+".jpg";
kollaBildnummer();
}
back_btn.addEventListener(MouseEvent.CLICK, backImage);
function backImage(evt0bj:MouseEvent):void{
bildNummer--;
bildgalleriBildbyte.source = "bildgalleri/bild "+bildNummer+".jpg";
kollaBildnummer();
}
http://www.buynflshop.com Wholesale NFL Jerseys
http://www.buynflshop.com Cheap NFL Jerseys
http://www.buynflshop.com NFL Football Jerseys
http://www.buynflshop.com/Category/68-women-nfl-jerseys.html Women NFLJerseys
http://www.buynflshop.com/Category/69-kids-nfl-jerseys.html Kid NFL Jerseys
http://www.buynflshop.com/Category/70-super-bowl-nfl-jerseys.html Super Bowl Jerseys
http://www.buynflshop.com/Category/144-throwback-jerseys.html Throwback Jerseys
http://www.buynflshop.com/Category/144-throwback-jerseys.html Cheap Throwback Jerseys
http://www.buynflshop.com/Category/144-throwback-jerseys.html Wholesale Throwback Jerseys
http://www.buynflshop.com/Category/144-throwback-jerseys.html Throwback NFL Jerseys
http://www.buynflshop.com/Category/70-super-bowl-nfl-jerseys.html Cheap Super Bowl Jerseys
http://www.buynflshop.com/Category/70-super-bowl-nfl-jerseys.html Wholesale Super Bowl Jerseys
http://www.buynflshop.com/Category/69-kids-nfl-jerseys.html nfl youth jerseys wholesale
http://www.buynflshop.com/Category/69-kids-nfl-jerseys.html nfl youth jerseys cheap
http://www.buynflshop.com/Category/81-baltimore-ravens-jerseys.html Baltimore Ravens Jerseys
http://www.buynflshop.com/Category/103-chicago-bears-jerseys.html Chicago Bears Jerseys
http://www.buynflshop.com/Category/124-cincinnati-bengals-jerseys.html Cincinnati Bengals Jerseys
http://www.buynflshop.com/Category/104-denver-broncos-jerseys.html Denver Broncos Jerseys
http://www.buynflshop.com/Category/104-denver-broncos-jerseys.html Dallas Cowboys Jerseys
http://www.buynflshop.com/Category/110-green-bay-packers-jerseys.html Green Bay Packers Jerseys
http://www.buynflshop.com/Category/109-indianapolis-colts-jerseys.html Indianapolis Colts Jerseys
http://www.buynflshop.com/Category/126-minnesota-vikings-jerseys.html Minnesota Vikings Jerseys
http://www.buynflshop.com/Category/131-new-england-patriots-jerseys.html New England Patriots Jerseys
http://www.buynflshop.com/Category/128-new-orleans-saints-jerseys.html New Orleans Saints Jerseys
http://www.buynflshop.com/Category/133-new-york-jets-jerseys.html New York Jets Jerseys