רשומות

שינוי ה-CSS של לינק בתפריט בהתאם לעמוד בו נמצאים.

חיפשתי את זה שנה! והנה זה נמצא לבסוף באתר המעולה הזה: http://www.wickham43.net/highlighthome.php Wickham's HTML & CSS tutorial Highlighted text link for current page 1 HOME About Us Services The links above show the simplest form of identifying which page you are on. Every page needs a different link to have the class="current". It does have the disadvantage that if you extend your website by adding extra pages or if you want to edit a link url you have to edit every page and you might have hundreds of them. The other methods allow the li tags with the links to be put in a separate "include" file where they will not change depending on which page they refer to and you will only have to edit one file to add extra links or edit urls. The code for the styles in the head section style tags is:- a.current:link, a.current:visited { color: black; cursor: default; text-transform: uppercase; font-weight: bold; background-color: lime; } /* unvisited and visited links*...

code snippets for as3

CS5 has introduced the code snippets, which got me thinking if I can find more. well, there are tons! http://snipplr.com/popular/language/actionscript-3 http://www.adobe.com/devnet/flash/articles/code_snippets_panel.html http://www.kirupa.com/forum/showthread.php?t=249149 http://mattmaxwellas3.blogspot.com/ Very useful!

creating a dynamic site with either php or SSI

Link out to a file containing html with either php or ssi SSI Include: replace area you want to link out to with this: also change the following file on server: .htaccess add following line to it: AddType text/x-server-parsed-html .html PHP: replace area you want to link out to with this: also change the following file on server: .htaccess add following line to it: ForceType application/x-httpd-php

אתר דינאמי פשוט

כל סוגי הקישור לקבצים חיצוניים ליצירת עמודים דינאמיים http://www.boutell.com/newfaq/creating/include.html

SSI Includes

למי שרוצה לבנות אתר דינאמי ללא מערכת ניהול תוכן מאוד מאוד שימושי

play stop pause sound AS3

var soundRequest:URLRequest = new URLRequest("soundFile.mp3"); var sound:Sound = new Sound(); var soundController:SoundChannel = new SoundChannel(); sound.load(soundRequest); var resumeTime:Number = 0; sound.addEventListener(Event.COMPLETE, onComplete); function onComplete(event:Event):void { play_btn.addEventListener(MouseEvent.CLICK, playSound); stop_btn.addEventListener(MouseEvent.CLICK, stopSound); } function playSound(event:MouseEvent):void { soundController = sound.play(resumeTime); pause_BTN.visible = true; pause_btn.addEventListener(MouseEvent.CLICK, pauseSound); play_BTN.visible = false; play_btn.removeEventListener(MouseEvent.CLICK, playSound); } function pauseSound(event:MouseEvent):void { resumeTime = soundController.position; soundController.stop(); pause_BTN.visible = false pause_btn.removeEventListener(MouseEvent.CLICK, pauseSound); play_BTN.visible = true; play_btn.addEventListener(MouseEvent.CLICK, playSound); } function stopSound(event:MouseE...

הפסקת כל המוזיקה בסרט AS3

import flash.media.SoundMixer; SoundMixer.stopAll();