website design
Use Mod Rewrite to append www to URLs
0
This is how to add www to the start of all your URLs in your website.
Simply edit your .htaccess file…
# Redirect adding leading www to root domain if not subdomain specified
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
You can also add a trailing slash to URL’s to increase performance. When a trailing slash is added to the end of a URL that does not end in a file extension, it tells the server to look only for that directory name.
rewriteCond $1 !/$
rewriteCond %{REQUEST_FILENAME}/ -d
rewriteRule (.+) http://www.domain.com/$1/ [R=301,L]
Spoon Apps Library : run IE7 in Windows 7 in the browser
0
I recently had problems with internet explorer not displaying images correctly and had to cross-browser test and correct a website that was playing up in IE7. Having recently installed Windows 7 on all my machines (and being an advocate of Chrome) I found that IE7 was not readily available for Windows 7. I found this site spoon.net that lets you run a browser sandbox for hundreds of apps including Internet Explorer 7 and have used it to mess about with all the old browsers. I’ve also found it handy for discovering new apps as well. Defiantly deserves a place on the bookmark bar… next to differencebetween.net
Create a URL button in flash AS3
0If you need a banner to have a button that when clicked takes you to another webpage when you click the flash button this is how you do it. You need to create a button (in this case a transparent rectangle on top of a web banner animation), add an event listener(a mouse event/click) and create a function (in this case the function is to request a URL and navigate to it).
1/ Press F8 to convert a rectangle into a symbol, create button and name it myButton.
2/ Click on the button in the main timeline and press F9 to open the actions window.
3/ Use this code to create an event listener and a function for after the click event.
You can use…
“_blank” or “top” to open in a new tab
“_parent” or “_self” open in the same tab
myButton.addEventListener(MouseEvent.CLICK, myButtonFunction);
function myButtonFunction(event: MouseEvent) {
var request:URLRequest = new URLRequest("http://www.pmlmedia.co.uk");
navigateToURL(request, "_self");
}


