LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-16-2006, 08:37 PM   #1
panicbox
LQ Newbie
 
Registered: Nov 2005
Location: Philippines
Distribution: Fedora Core 4, Debian
Posts: 21

Rep: Reputation: 15
how to put my banner in squirrelmail?


I want to put the company banner on the top of the screen, that is when you are already inside the mail. now this is what i add in /squirrelmail/functions/page_header.php

// Top Banner

echo "<img src=\"../images/image.jpg\" width=\"630\" height=\"94\" alt=\"...\">";
//before
echo "<a name=\"pagetop\"></a>\n"
. html_tag( 'table', '', '', $color[4], 'border="0" width="100%" cellspacing="0" cellpadding="2"' ) ."\n"
. html_tag( 'tr', '', '', $color[9] ) ."\n"
. html_tag( 'td', '', 'left' ) ."\n";
if ( $shortBoxName <> '' && strtolower( $shortBoxName ) <> 'none' ) {
echo ' ' . _("Current Folder") . ": <b>$shortBoxName&nbsp;</b>\n";
} else {
echo '&nbsp;';
}

now this is working but my problem is when you are viewing in a high resolution or like in a 17" monitor, the image becomes short.
if i set the width of the image to 1200, when the page is being viewed in a 15" monitor, the image is too long.

do you guys have an idea how to do this the the length of the image is dyanamic?

help me guys... I'm on a deadline...
 
Old 02-16-2006, 08:38 PM   #2
panicbox
LQ Newbie
 
Registered: Nov 2005
Location: Philippines
Distribution: Fedora Core 4, Debian
Posts: 21

Original Poster
Rep: Reputation: 15
as you know squirrelmail is pure php. so i think i post this in the right place.
 
Old 02-16-2006, 11:53 PM   #3
panicbox
LQ Newbie
 
Registered: Nov 2005
Location: Philippines
Distribution: Fedora Core 4, Debian
Posts: 21

Original Poster
Rep: Reputation: 15
For anyone having the same problem, this works.

Quote:
echo" <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"../images/imagebackground_02.jpg\" width=\"100%\" height=\"94\"><tr><td>\n";
echo "<img src=\"../images/imagefront_01.jpg\" width=\"630\" height=\"94\" alt=\"...\">";
echo"</td></tr></table>";
Now even you have high resolution, the image won't break.
It's fun helping yourself!!! ;P

Last edited by panicbox; 02-16-2006 at 11:54 PM.
 
Old 02-17-2006, 02:30 AM   #4
shydra
Member
 
Registered: Nov 2005
Posts: 31

Rep: Reputation: 15
Congratulations!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LQ Banner bongenheimer LQ Suggestions & Feedback 12 10-31-2005 11:14 AM
Problem with banner ad? Dark_Helmet LQ Suggestions & Feedback 6 09-05-2003 05:41 PM
MS Banner Ad on LQ?!?!?! fragglehorn LQ Suggestions & Feedback 12 11-06-2002 12:26 AM
Loggin Banner thecrab Linux - General 1 03-27-2002 02:14 PM
Banner Ads Dr_G LQ Suggestions & Feedback 6 02-15-2002 02:17 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration