Need help with custom header made in photoshop
-
Hi. i’m busy making a new WP theme for my blog, which is almost done. But the problem is that i dont see my header (made in Photoshop with rollover buttons) correctly as it should, instead it looks “broken”. a picture:
https://i16.photobucket.com/albums/b2/Dougystilo/myheader.pngAnd i want it clean like this here:
https://www.mattsewell.co.uk (header’s most-likely made with photoshop as well.This is my header.php code:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”https://www.w3.org/1999/xhtml” <?php
if(function_exists(‘language_attributes’)) {
language_attributes();
}else{
echo “<h1>Oops:</h1><font color=\”red\”>This theme only works with WordPress 2.1.* or higher. You seem to have an <b>outdated version</b> of wordpress. Please download the latest WordPress to use this theme and also get the latest security patches.</font>”;
// exit();
}
?>>
<head profile=”https://gmpg.org/xfn/11″>
<meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” /><title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
<meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –>
<link rel=”stylesheet” type=”text/css” href=”<?php bloginfo(‘stylesheet_directory’) ?>/reset-fonts-grids-tabs.css” />
<link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />
<link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php bloginfo(‘rss2_url’); ?>” />
<link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
<?php wp_head(); ?>
<script type=”text/javascript”>
<!–
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf(“#”)!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf(“?”))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//–>
</script>
</head>
<body onload=”MM_preloadImages(‘images/header_select_02.gif’,’images/header_select_04.gif’,’images/header_select_06.gif’,’images/header_select_08.gif’,’images/header_select_10.gif’,’images/header_select_12.gif’)”>
<div id=”doc” class=”yui-t4″><div id=”hd”>
<table id=”Table_01″ width=”1000″ height=”280″ border=”0″ cellpadding=”0″ cellspacing=”0″>
<tr>
<td colspan=”14″><img src=”images/header_01.gif” alt=”” width=”1000″ height=”251″ border=”0″ /></td>
</tr>
<tr>
<td><img src=”images/header_02.gif” name=”Image16″ width=”65″ height=”29″ border=”0″ id=”Image16″ /></td>
<td><img src=”images/header_03.gif” width=”18″ height=”29″ alt=”” /></td>
<td><img src=”images/header_04.gif” name=”Image17″ width=”134″ height=”29″ border=”0″ id=”Image17″ /></td>
<td><img src=”images/header_05.gif” width=”18″ height=”29″ alt=”” /></td>
<td><img src=”images/header_06.gif” name=”Image18″ width=”70″ height=”29″ border=”0″ id=”Image18″ /></td>
<td><img src=”images/header_07.gif” width=”17″ height=”29″ alt=”” /></td>
<td><img src=”images/header_08.gif” name=”Image19″ width=”183″ height=”29″ border=”0″ id=”Image19″ /></td>
<td><img src=”images/header_09.gif” width=”15″ height=”29″ alt=”” /></td>
<td><img src=”images/header_10.gif” name=”Image20″ width=”77″ height=”29″ border=”0″ id=”Image20″ /></td>
<td><img src=”images/header_11.gif” width=”15″ height=”29″ alt=”” /></td>
<td><img src=”images/header_12.gif” name=”Image21″ width=”60″ height=”29″ border=”0″ id=”Image21″ /></td>
<td><img src=”images/header_13.gif” width=”16″ height=”29″ alt=”” /></td>
<td><img src=”images/header_14.gif” name=”Image22″ width=”102″ height=”29″ border=”0″ id=”Image22″ /></td>
<td><img src=”images/header_15.gif” width=”210″ height=”29″ alt=”” /></td>
</tr>
</table>
“></div>please help, thanks.
- The topic ‘Need help with custom header made in photoshop’ is closed to new replies.