CSS
Link to CSS
<link type="text/css" href="url" rel="stylesheet">
CSS Dropdown Nav
IE Transparency
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src="../images/bubble_02.png");
jQuery
Link to Google's jQuery
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>
On Page Load
$(document).ready(function(){ //insert code here });
Flash
Caurina
Downloads the library from http://hosted.zeh.com.br/tweener/docs/en-us/. Put it here (or similar) C:\Program Files\Adobe\Adobe Flash CS3\en\First Run\Classes
import caurina.transitions.Tweener;
Tweener.addTween(text_mc, {_alpha: #, _x: #, _y: #, _xscale: #, _yscale: #, time: #, delay: #, transition: "...", onComplete:functionName});
Click Tag
on (release) {
if (clickTag != undefined) {
myUrl = clickTag;
} else if (_root.clickTAG != undefined) {
myUrl = _root.clickTAG;
} else if (_root.ClickTag != undefined) {
myUrl = _root.ClickTag;
} else if (_root.ClickTAG != undefined) {
myUrl = _root.ClickTAG;
} else if (_root.CLICKTAG != undefined) {
myUrl = _root.CLICKTAG;
} else if (_root.clicktag != undefined) {
myUrl = _root.clicktag;
} else {
}
getURL(myUrl, "_blank");
}
PHP
Folder Reader
// Determine how many files exist in the offline directory
$numOffline = 0;
$folder = dir("./sections/offline");
while($folderEntry = $folder->read()){
if (substr(strrchr($folderEntry, "."), 1) == "swf") {
$numOffline ++;
}
}
$folder -> close();
// Determine how many files exist in the online directory
$numOnline = 0;
$folder = dir("./sections/online");
while($folderEntry = $folder->read()){
if (substr(strrchr($folderEntry, "."), 1) == "swf") {
$numOnline ++;
}
}
$folder -> close();
// Determine how many files exist in the campaign directory
$numCampaign = 0;
$folder = dir("./sections/campaign");
while($folderEntry = $folder->read()){
if (substr(strrchr($folderEntry, "."), 1) == "swf") {
$numCampaign ++;
}
}
$folder -> close();
// Write a query string to pass the information into flash
$queryPortfolio = "?portfolioNumOffline=" . $numOffline . "&portfolioNumOnline=" . $numOnnline . "&portfolioNumCampaign=" . $numCampaign;
echo $queryPortfolio;
Javascript
Random Image
// Create an array that holds the path to each image
imageArray = new Array('images/image1.jpg','images/image2.jpg','images/image3.jpg','images/image4.jpg');
// Generate a random number between 0 and the length of the Array
var randomNumber = Math.floor(Math.random() * imageArray.length);
// Write the image path to the screen
document.write("test" + imageArray[randomNumber]);