Blog

Newest Post
Blog Archives
Blog Categories

Portfolio

3D Models
Banners
Brochures
Business Cards
Custom Programming
Environments
Flash Projects
Game Design
Image Altering
Web Design

About

Resume
Recommendation Letters

Contact

July 18, 2008

Page Forwarding using Meta Tag

Filed under: The Coding World — admin @ 11:22 am

This code goes in the <Header> along with all other Meta info.

<meta http-equiv="REFRESH" content="0; url=page.php">

Creating a Pop Up Window with Javascript

Filed under: JavaScript, The Coding World — admin @ 10:37 am

Here is how to create a simple pop-up window using java script.

This will create a pop-up window on page load:
Place this javascript in the <head>  section of the webpage.

View Code JAVASCRIPT
onload = function () {
  PopUpURL    = "page.php";
  PopUpLeft   =  100;
  PopUpTop    =  100;
  PopUpWidth  =  600;
  PopUpHeight =  300;
   popO='left='+PopUpLeft+',top='+PopUpTop+',width='+PopUpWidth+',height='+PopUpHeight
  window.open(PopUpURL,'nrc',popO);
}

Here is how to create a Pop Up Window from a link:
Place the following code in the <head> section

View Code JAVASCRIPT
var newwindow;
function popup(url)
{
newwindow=window.open(url,'name','height=500,width=333');
if (window.focus) {newwindow.focus()}
}

This part goes in the link tag:

 <a href="javascript:popup('poppedexample.html');">Pop it</a>

July 1, 2008

Creating a perminent redirect in the .htaccess file

Filed under: .htaccess — admin @ 9:32 am

A search engine friendly way to redirect an old page to a new one is to add the following line in your .htaccess file.

“Redirect permanent /old-page.html http://www.newsite.com/new-page.html”

Direct the ErrorDocument 404 to a webpage

Filed under: .htaccess — admin @ 9:31 am

If you would like the “404 Webpage Not Found” error to redirect to another page on your website – just simply create (or edit) your .htaccess file. This file should be at the root level of your site’s directory where your root webpages are stored.

Add the following line: “ErrorDocument 404 /pagename.html”

© - Digital Epiphany Designs, Online Portfolio for Web Design, Custom Programming, Grapic Design and Game Design.