pix582 Posted February 6, 2009 Share Posted February 6, 2009 hi im new to this site and i cant find what im lookin for i have been updating my headers on my site but the table image only works on the main page not on my shop, blog, and gallery can any one plz help??? http://www.emmelene-fadden.co.uk/gallery/index.php http://www.emmelene-fadden.co.uk/wordpress/ http://www.emmelene-fadden.co.uk/shop/ Link to comment https://forums.phpfreaks.com/topic/144052-solved-header-table-image-not-working/ Share on other sites More sharing options...
gevans Posted February 6, 2009 Share Posted February 6, 2009 If you're looking at logo.jpg it's not even included in those pages. on the main index you have this; <table width="100%" background="logo.jpg" bgcolor="#996699"> on gallery/index.php <table width="100%" bgcolor="#CC0066"> Link to comment https://forums.phpfreaks.com/topic/144052-solved-header-table-image-not-working/#findComment-755851 Share on other sites More sharing options...
pix582 Posted February 6, 2009 Author Share Posted February 6, 2009 sorry i put in a colour so ppl can see the text :S i hav edited it bk hav a look Link to comment https://forums.phpfreaks.com/topic/144052-solved-header-table-image-not-working/#findComment-755859 Share on other sites More sharing options...
gevans Posted February 6, 2009 Share Posted February 6, 2009 You're in a sub folder, need to be aware of hierachy <table width="100%" background="../logo.jpg" Link to comment https://forums.phpfreaks.com/topic/144052-solved-header-table-image-not-working/#findComment-755865 Share on other sites More sharing options...
pix582 Posted February 6, 2009 Author Share Posted February 6, 2009 <?php plogger_init(); ?> <style type="text/css"> <!-- .style1 { color: #FFFFFF; font-size: 12px; } .style2 { color: #FFFFFF; font-size: 36px; font-family: Verdana, Arial, Helvetica, sans-serif; } --> </style> <div id="wrapper"> <table width="99%" background="logo.jpg"> <tr> <td colspan="9"> </td> </tr> <tr> <td colspan="4"><div align="left"><span class="topheader style2">Emmelene Fadden</span></div></td> <td colspan="4"> </td> <td width="17%"><?php echo generate_search_box(); ?></td> </tr> <tr> <td colspan="4"><div align="left"><span class="2header style1">Photography </span></div></td> <td colspan="5"> </td> </tr> <tr> <td colspan="9"> </td> </tr> <tr> <td width="75" align="center" valign="baseline" background="logo.jpg" bgcolor="#FFFFFF" class="mybutton" scope="col"><a href="http://www.emmelene-fadden.co.uk" class="style8">Home</a></td> <td width="75" align="center" valign="baseline" background="logo.jpg" bgcolor="#FFFFFF" class="mybutton" scope="col"><a href="http://www.emmelene-fadden.co.uk/gallery/index.php" class="style8">Gallery</a></td> <td width="75" align="center" valign="baseline" background="logo.jpg" bgcolor="#FFFFFF" class="mybutton" scope="col"><a href="http://www.emmelene-fadden.co.uk/bio.php" class="style8">Bio</a></td> <td width="75" align="center" valign="baseline" background="logo.jpg" bgcolor="#FFFFFF" class="mybutton" scope="col"><a href="http://www.emmelene-fadden.co.uk/wordpress" class="style8">Blog</a></td> <td width="75" align="center" valign="baseline" background="logo.jpg" bgcolor="#FFFFFF" class="mybutton" scope="col"><a href="http://www.emmelene-fadden.co.uk/contact.php" class="style8">Contact</a></td> <td width="75" align="center" valign="baseline" background="logo.jpg" bgcolor="#FFFFFF" class="mybutton" scope="col"><a href="http://www.emmelene-fadden.co.uk/shop" class="style8">Shop</a></td> <td width="75"> </td> <td width=75"> </td> <td> </td> </tr> </table> <div id="header"> <div id="search-container"></div> <div id="breadcrumbs"> <div id="slideshow"> <?php echo plogger_slideshow_link(); ?> <?php echo plogger_print_button(); ?> </div> <?php echo generate_breadcrumb(); ?> </div> <!-- <p></p> --> </div> <?php echo plogger_download_selected_form_start(); ?> logo is in same place :S Link to comment https://forums.phpfreaks.com/topic/144052-solved-header-table-image-not-working/#findComment-755868 Share on other sites More sharing options...
gevans Posted February 6, 2009 Share Posted February 6, 2009 Try adding a base href; <base href="http://your-domain/" /> Put that inside your <head> tag and make sure you use the full directory from there, so src="images/logo.jpg" Link to comment https://forums.phpfreaks.com/topic/144052-solved-header-table-image-not-working/#findComment-755876 Share on other sites More sharing options...
pix582 Posted February 6, 2009 Author Share Posted February 6, 2009 <html> <head> <title>Gallery</title> <base href="http://www.emmelene-fadden.co.uk"> </head> <?php plogger_init(); ?> <style type="text/css"> <!-- .style1 { color: #FFFFFF; font-size: 12px; } .style2 { color: #FFFFFF; font-size: 36px; font-family: Verdana, Arial, Helvetica, sans-serif; } --> </style> <script language=JavaScript> //Disable right mouse click Script //By Maximus ([email protected]) w/ mods by DynamicDrive //For full source code, visit http://www.dynamicdrive.com var message="Hey what gives?!"; /////////////////////////////////// function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") document.ondragstart = function () { return false; }; </script> <div> <table width="99%" background="logo.jpg"> <tr> done that but dont work even if i put in image/logo.jpg i hav the logo at http://www.emmelene-fadden.co.uk/logo.jpg could it b somethink to do with the css page or index.php in gallery? Link to comment https://forums.phpfreaks.com/topic/144052-solved-header-table-image-not-working/#findComment-755881 Share on other sites More sharing options...
gevans Posted February 6, 2009 Share Posted February 6, 2009 sorry, I thoguht it was in an image directory, change it back to background="logo.jpg" Link to comment https://forums.phpfreaks.com/topic/144052-solved-header-table-image-not-working/#findComment-755882 Share on other sites More sharing options...
pix582 Posted February 6, 2009 Author Share Posted February 6, 2009 dw lol i know i cant figer it out works for one place but no were eles n the image is in the same place... this sucks Link to comment https://forums.phpfreaks.com/topic/144052-solved-header-table-image-not-working/#findComment-755884 Share on other sites More sharing options...
gevans Posted February 6, 2009 Share Posted February 6, 2009 Try putting the full url in place, so <table width="99%" background="http://www.emmelene-fadden.co.uk/logo.jpg"> Or do it properly with css style Link to comment https://forums.phpfreaks.com/topic/144052-solved-header-table-image-not-working/#findComment-755887 Share on other sites More sharing options...
pix582 Posted February 6, 2009 Author Share Posted February 6, 2009 durr y didnt i think of that thats how i fix a link when it dont work :S tnx so much i hav a few other probs but i have somethings to do first!! Link to comment https://forums.phpfreaks.com/topic/144052-solved-header-table-image-not-working/#findComment-755889 Share on other sites More sharing options...
pix582 Posted February 6, 2009 Author Share Posted February 6, 2009 one more thing :-\ how do i get rid of the space between the header and collections? Link to comment https://forums.phpfreaks.com/topic/144052-solved-header-table-image-not-working/#findComment-755892 Share on other sites More sharing options...
gevans Posted February 6, 2009 Share Posted February 6, 2009 what space are you talking about? Link to comment https://forums.phpfreaks.com/topic/144052-solved-header-table-image-not-working/#findComment-755970 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.