Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1301.

Solve : Accessing Menubar source code across numerous pages?

Answer»

Alright, here is my situation.  I have created a website with a menubar across the top of each PAGE.  I want to be able to have the menubar code in a separate HTML file and have each other page access that page so I only have to change the code on one page when I have to update the menubar and not 30 other pages.  The only way that I have been able to find to do this is by setting up an SSI file.  Unfoprtunately that requires me to change my pages to SHTML files and change some settings on the server.  This is something I am not familiar with enough to do.  Is there any other simple way to do this?  I am stuck.Not using simple HTML, no.

You can use PHP, which is PROBABLY the best solution.
You would have to change all of your Webpage's extensions to .php instead of .html.

It's quite simple from there.And doing that would make it so I wouldn't have to change any server settings? Quote from: generalfault on July 28, 2009, 08:26:08 AM

And doing that would make it so I wouldn't have to change any server settings?

Oh YEA. Nothing to do with the server.

Once you have all the files renamed, it involves adding about 3 lines of code (to every page) to display the whole menu on every page.Alright, SOUNDS good.  I'll do some research into Php now.  At least I have a little direction now.  Thank you.
1302.

Solve : Javascript document.write?

Answer»

Would someone look at this statement and let me know why it won't PRINT.
script type="text/javascript">

var emissionyear = new Array(7);
emissionyear(0) = "In 1980,";
emissionyear(1) = "In 1985,";
emissionyear(2) = "In 1990,";
emissionyear(3) = "In 1995,";
emissionyear(4) = "In 2000,";
emissionyear(5) = "In 2002,";
emissionyear(6) = "In 2003,";

var emissionamount = new Array(7);
emissionamount(0) = 18313.13;
emissionamount(1) = 19430.24;
emissionamount(2) = 21402.22;
emissionamount(3) = 22034.54;
emissionamount(4) = 23849;
emissionamount(5) = 24464.92;
emissionamount(6) = 25162.07;

/* document.write("

" + emissionyear(0) + "the world generated " + emissionamount(0) + " million metric tons of carbon dioxide EMISSIONS from fossil fuel consumption.

");
document.write("

" + emissionyear(1) + "the world generated " + emissionamount(1) + " million metric tons of carbon dioxide emissions from fossil fuel consumption.

");
document.write("

" + emissionyear(2) + "the world generated " + emissionamount(2) + " million metric tons of carbon dioxide emissions from fossil fuel consumption.

");
document.write("

" + emissionyear(3) + "the world generated " + emissionamount(3) + " million metric tons of carbon dioxide emissions from fossil fuel consumption.

");                                                                                                                                                                      ;
document.write("

" + emissionyear(4) + "the world generated " + emissionamount(4) + " million metric tons of carbon dioxide emissions from fossil fuel consumption.

");
document.write("

" + emissionyear(5) + "the world generated " + emissionamount(5) + " million metric tons of carbon dioxide emissions from fossil fuel consumption.

");
document.write("

" + emissionyear(6) + "the world generated " + emissionamount(6) + " million metric tons of carbon dioxide emissions from fossil fuel consumption.

");
/* ]]> */
Arrays are indexed in javascript via square brackets ([]) rather then parentheses.Some extra info
1303.

Solve : Designs and Design!!!!?

Answer» Its really a problem to find out good site for  cool web designs, after  many web SURFING ..i FOUND some good site and some fack sites too 



give some good ad constructive suggestions.ok  Quote
i found this sites...like    "<link>" and many sites...

give some good ideas  ...[/color]USE GOOGLE.
1304.

Solve : report from php to excel?

Answer»

>>>EI guys how to make a report in php that can be downloaded in ms excel? thanksTo use this, you'll need the PHP PEAR Library.
You'll also need Google TRANSLATOR.

http://www.contentmanager.de/magazin/artikel_310-print_excel_export_mit_pear.html
http://www.mayflower.de/category/category.php?CatID=8&startcat=2&lang=de

Both of those are in German, so you can use Google to TRANSLATE them.Can you simply generate an ASCII or text file CONTAINING the report?  Excel can open/import such files.I would FOLLOW Soybean.  Unless you need to include fancy Excel stuff (formatting, formulae, etc) just create a text-based CSV file.

1305.

Solve : Downloading CGI file?

Answer»

If I download a CGI file from the internet, does the PAGE now live on my HARD drive or am I just calling up the live page when I open the file?If you download a CGI page from the internet, you'll only be DOWNLOADING the HTML it outputs.Thanks!!

1306.

Solve : php sql string querying with wildcard?

Answer»

I currently have a php file that runs when users SUBMIT text in certain fields around my site. Right now, the file only looks for specifics words I enter into a table, and it only finds exact words. What I want to do is have the sql tring be able to USE wildcard values around the {invalid_word} tag so it can FIND and prevent a user from submitting text if a long word contains the text on my banned list. Like, if I banned the word hair, and someone tried using the word hairball, it would let them. This is what the current php file code is

Code: [Select]<?php
# **** FIND BAD WORDS INTO THE ENTERED STRING **** #
# param $str - TAKES an argument as an string
# match with database keywords
# return true if bad word found
# return FALSE if bad word not found

function findBadWords( $str ){

$return = false;

if( strlen( $str ) > 0 ) {
$sql  = "SELECT * FROM tbl_invalidunm WHERE MATCH (invalid_word) AGAINST (LCASE('".$str."') IN BOOLEAN MODE)";
$rs  = mysql_query( $sql ) or die( "Invalid query - ". mysql_error() );

if($rs){
$row_count  = mysql_num_rows($rs);

if( $row_count > 0 ) {
$return = true;
}
} // if
} // if
return $return;

} // end function 

?>

1307.

Solve : Why do you need to re-design your website??

Answer»

Recently, I have received emails and calls from some companies in need of website re-design. They always come with the same question " why re-design?" if the information is already online.

Below I have posted some reasons

* Unfinished website: it is very common that the person that was hired in first instance doesn't finish the project ( not in all the cases) but it happens when you hire unprofessional persons withour any trajectory or referral, nor even a good testimonial, mostly they LEAVE the images 50% processed and many broken links, then, runaway with your money.

* Web design wrong: in many cases the image doesn't match the website's identity or purpose ( logo, colors, etc.)

* Low quality website: the quality standards are very important due to the economy globalization, that way, our website can be visible worldwide.

* You are not satisfied with the images: if the company or freelancer who provides you the service doesn't include a high quality image that PORTRAITS the company properly, you are definately needing a change.

In many cases, the first time that a customer gets any kind of web design, he/she doesn't have many knowledges about what needs to be considered when purchasing a website design, therefore they can be attracted to false services that will create false expectations and will not COMPLY their needs.

That's why in a second or third case, the clients realize they already have the necessary knowledge to seek and find a complete web design study that fills the requirements and plans developed by the project's owner.

Important: Analyze the existing options ( quality, timeline and price), in first instance what may seem the best option ( price) may not be the appropriate one (it may cause you money and time waste) and you will not be satisfied with the results.
That is a question?

Why not?

Rather than re-design your website you just create a new website.

Dusty, grimy  and unkempt web sites do not created landfills, contribute to global warming  or waste water.

So if you have a bad looking web site, don't fret about it. It will de-compose and disappear in cyberspace. They always do that.

Did you know you can have a web site with no HTML? Quote

Did you know you can have a web site with no HTML?
Don't start this again! Unless of course you mean something else. Quote from: kpac on January 22, 2010, 10:21:32 AM
Don't start this again! Unless of course you mean something else.
What else could it be?
In a few years from now HTML will be history.
But maybe the OP was not talking about HTML.
Or maybe he was telling us HTML is doomed.
Perhaps he might elaborate more. Quote
In a few years from now HTML will be history.
Explain.HTML is a bottleneck.
Example, to read a sound file you hare to have some kind of plug-in for the browser that is not provided by HTML alone. Likewise for a video file. And  the browser had be designed to use other kinds of script or p-code. Some parts of current web sites use a lot of java, not JavaScript.
So it is just a matter of time web sites are going to be done in some other kind of code and the browser will request the advanced code instead of HTML. The page will load faster and the user will not be ABLE to see the source code.
These kind of changes come faster that we can predict. Current problems with the INTERNET may dictate that HTML be dropped to improve performance and security. When that happens, all web sites will have to be re dinged, or at least translated into the new pseudo code. I may not be Java, but something along that line.I doubt that will happen for a long time. The W3C released XHTML Strict 1.0 not too long ago as the web's standard markup language. They didn't do that for nothing.Also, HTML5 came out.
1308.

Solve : Any way to add onto top??

Answer»

Mysql..
I have my database, but I need to insert something on top. D:

Anyone know how?Please rephrase your question.  I know how to do a lot of things with MySQL, but I don't know what you mean.Like a forum. You know how they add something to the MySQL? Well, they go to the top of the table.
I don't know how to do that. But, I am MAKING a forum, and that's the last thing I need.I believe this can be done much easier by just installing a forum from the CPANEL provided by your web hosting service.  With many hosting services, installing a forum can be as easy as clicking on a button in cPanel. 

By the way, you've started three forum threads now and they all pertain to the same thing.  You should keep the discussion in one thread.   Yeah, but I like to make my own things. D: the "not invented here" ATTITUDE.  Does your question relate to how things are sorted?  Is that the point?  Add a datestamp field and sort on that.  It's all in the MySQL manual:  http://dev.mysql.com/doc/mysql/en/index.htmlSeriously, to make your own forum would take months of work. And even then, not be complete. You'd have to do hours of debugging and testing every function and page.I see ALOT of [img] and [font] type things, or , , , etc..

What are these CALLED? I'd like to use them on my site...
BBCode?Like I said before, download SMF and have a look at some of the code in it.

1309.

Solve : Need good AJAX framework?

Answer» LATE last YEAR, I MADE a AJAX FRAMEWORK and it failed too much.
What is the easiest AJAX framework?
1310.

Solve : Website Template Broken up???

Answer»

Hi,

I'd REALLY appreciate any help, I've completed a website template, after adding content to the pages, I would end up adding more content to some pages than others, and I would increase certain image heights on the template, to accomodate the content.
The website displayed PERFECTLY in google chrome, unfortunately when viewed in Firefox and IE, the images are spaced out from each other??
I've come across this before and I'd normally solve the problem by applying the valign="top" attribute to the column or row the picture was in, this seemed to solve the problem, but this time, it's not doing anything.
I've tried setting the table height to 0, this has also not done me any good.
 
here is a link:
http://www.exalon.co.za/africall/tours.htmlNice choice in picking Google Chrome to do your testing.

Are we talking about the menu images on the left?JIP, that would be the problem,
i don't know if it shows in your browser,
but the bottom images are also out of place
and the boxes on the RIGHT, but this will probably
be solved once the menu links are sorted?
If you have any ideas for me, I'd be sOO grateful!I'm not sure what way the site works, looking at the code... Did you download the template or did you code it yoursself?I did everything myself.
Please keep in mind, I'm like a total newbie and self-taught.. 
If this will help?

Code: [Select]<html>
<head>
<title>title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="keywords...">
<meta name="description" content="description...">
<!-- ImageReady Preload Script (templaterolled.psd) -->
<script type="text/javascript">
<!--

function newwindow(name)
{
window.open(name,'','width=1024,height=683,resizable=no,scrollbars=0,left=0,right=0');
}

// -->
</script>
<!-- ImageReady Preload Script (templaterolled.psd) -->
<SCRIPT TYPE="text/javascript">
<!--

function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}

function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}

var preloadFlag = false;
function preloadImages() {
if (document.images) {
template_05_over = newImage("images/template_05-over.png");
template_09_over = newImage("images/template_09-over.png");
template_11_over = newImage("images/template_11-over.png");
template_12_over = newImage("images/template_12-over.png");
template_13_over = newImage("images/template_13-over.png");
template_16_over = newImage("images/template_16-over.png");
template_17_over = newImage("images/template_17-over.png");
template_18_over = newImage("images/template_18-over.png");
template_24_over = newImage("images/template_24-over.png");
preloadFlag = true;
}
}

// -->
</script>
<!-- End Preload Script -->
<link rel="stylesheet" href="style.css">
<style type="text/css">
<!--
.style1 {font-size: 14px}
.style2 {font-size: 14}
.style3 {font-size: 10px}
-->
</style>
</head>
<body background="bg1.jpg" marginwidth="0" marginheight="0" ONLOAD="preloadImages();">
<!-- ImageReady Slices (templaterolled.psd) -->
<table id="Table_01" align="center" width="801" height="0" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td colspan="2" valign="top">
<img src="images/template_01.png" width="177" height="10" alt="" align="top"></td>
<td colspan="6" rowspan="2" valign="top">
<table border="0" background="images/template_02.png" width="623" height="137" alt="">
<tr valign="top">
<td valign="top"><center><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="505" height="141" title="Header"></center>
              <param name="movie" value="images/Movie1.swf">
              <param name="quality" value="high">
              <embed src="images/Movie1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="505" height="141"></embed>
  </object></td>
</tr>
</table></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="10" alt="" align="top"></td>
</tr>
<tr valign="top">
<td colspan="2" rowspan="2" valign="top"><img src="images/AfricaCallingLogo.JPG" width="177" height="131" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="127" alt="" align="top"></td>
</tr>
<tr valign="top">
<td colspan="6" valign="top">
<img src="images/template_04.png" width="623" height="4" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="4" alt="" align="top"></td>
</tr>
<tr valign="top">
<td colspan="3" valign="top">
<a href="index.php"
onmouseover="changeImages('template_05', 'images/template_05-over.png'); return true;"
onmouseout="changeImages('template_05', 'images/template_05.png'); return true;"
onmousedown="changeImages('template_05', 'images/template_05-over.png'); return true;"
onmouseup="changeImages('template_05', 'images/template_05-over.png'); return true;">
<img name="template_05" src="images/template_05.png" width="220" height="60" border="0" alt="" align="top"></a></td>
<td rowspan="18">
<table border="0" background="images/template_06.png" width="353" height="100%" alt="">
<tr valign="top">
<td valign="top"><center>
  <img src="images/toursheading.png" width="91" height="42" align="top">
</center>  
  <a href="exclusivesafaris.php"><img src="images/eslink.png" alt="Exclusive Safaris" width="160" height="160" border="0" align="top"></a><a href="kilimanjarohikes.php"><img src="images/khlink.png" alt="Kilimanjaro Hikes" width="160" height="160" border="0" align="top"><br>
              </a><a href="mokorosafaris.php"><img src="images/mslink.png" alt="Mokoro Safaris" width="160" height="160" border="0" align="top"></a> <a href="overlandtours.php"><img src="images/otlink.png" alt="Overland Tours" width="160" height="160" border="0" align="top"><br>
                                        </a><a href="selfdrivetours.php"><img src="images/sdplink.png" alt="Self Drive Packages" width="160" height="160" border="0" align="top"></a> <a href="volunteerprojects.html"><img src="images/vplink.png" alt="Volunteer Packages" width="160" height="160" border="0" align="top"><br>
                                                      </a><a href="walkingsafaris.php"><img src="images/wslink.png" alt="Walking Safari" width="160" height="160" border="0" align="top"></a> <a href="canoesafaris.php"><img src="images/cslink.png" alt="CANOE Safari" width="160" height="160" border="0" align="top"><br>
                                                                    </a><a href="campingsafaris.php"><img src="images/caslink.png" alt="Camping Safari" width="160" height="160" border="0" align="top"></a> <a href="adrenalineaddiction.php"><img src="images/adlink.png" alt="Adrenaline Addiction" width="160" height="160" border="0" align="top"></a><br>
              <a href="sharkcagediving.php"><img src="images/scdlink.png" alt="Shark Cage Diving" width="160" height="160" border="0" align="top"></a> <a href="kayakingholidays.php"><img src="images/kahlink.png" alt="Kayaking holidays" width="160" height="160" border="0" align="top"></a><br>
              <a href="familyholidays.php"><img src="images/fhlink.png" alt="Family Holidays" width="160" height="160" border="0" align="top"></a> <a href="honeymoon.php"><img src="images/honarr.png" alt="honeymoon arrangements" width="160" height="160" border="0" align="top"><br>
                            </a><a href="fifaworldcup.php">
              <center>
                <img src="images/fifalink.png" alt="Fifa 2010" width="160" height="160" border="0" align="top">
              </center>
              </a>   <br>
    <br>
   <center>
      </center></tr>
  </table>
  </td>
<td colspan="3" rowspan="6" valign="top">
<table border="0" cellpadding="10px" background="images/template_07.png" width="212" height="0" alt="">
<tr valign="top">
<td valign="top"><p>&nbsp;</p>
  <p>&nbsp;</p>
  <p align="center" class="style6"><span class="style1"><span class="style2"><span class="style3"><a href="volunteerprojects.html">10%   off Volunteer Projects</a></span></span></span></p>
  <p align="center" class="style6 style3"><a href="honeymoon.html">10%   off Honeymoon Packages</a></p>
  <p align="center" class="style6 style3"><a href="fifaworldcup.html">FIFA   World Cup Specials</a></p>
  <p align="center" class="style6"><span class="style3"><a href="services.php">Crazy   CAPE Town Special</a></span></p>   </td>
</tr>
</table>
  </td>
<td rowspan="20" valign="top">
<img src="images/template_08.png" width="15" height="835" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="60" alt="" align="top"></td>
</tr>
<tr valign="top">
<td colspan="3" valign="top">
<a href="travelpolicy.php"
onmouseover="changeImages('template_09', 'images/template_09-over.png'); return true;"
onmouseout="changeImages('template_09', 'images/template_09.png'); return true;"
onmousedown="changeImages('template_09', 'images/template_09-over.png'); return true;"
onmouseup="changeImages('template_09', 'images/template_09-over.png'); return true;">
<img name="template_09" src="images/template_09.png" width="220" height="58" border="0" alt="" align="top"></a></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="58" alt="" align="top"></td>
</tr>
<tr>
<td colspan="3" valign="top">
<img src="images/template_10.png" width="220" height="1" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="1" alt="" align="top"></td>
</tr>
<tr valign="top">
<td colspan="3" valign="top">
<a href="tours.html"
onmouseover="changeImages('template_11', 'images/template_11-over.png'); return true;"
onmouseout="changeImages('template_11', 'images/template_11.png'); return true;"
onmousedown="changeImages('template_11', 'images/template_11-over.png'); return true;"
onmouseup="changeImages('template_11', 'images/template_11-over.png'); return true;">
<img name="template_11" src="images/template_11.png" width="220" height="59" border="0" alt="" align="top"></a></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="59" alt="" align="top"></td>
</tr>
<tr valign="top">
<td colspan="3" valign="top">
<a href="services.php"
onmouseover="changeImages('template_12', 'images/template_12-over.png'); return true;"
onmouseout="changeImages('template_12', 'images/template_12.png'); return true;"
onmousedown="changeImages('template_12', 'images/template_12-over.png'); return true;"
onmouseup="changeImages('template_12', 'images/template_12-over.png'); return true;">
<img name="template_12" src="images/template_12.png" width="220" height="62" border="0" alt="" align="top"></a></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="62" alt="" align="top"></td>
</tr>
<tr valign="top">
<td colspan="3" rowspan="3" valign="top">
<a href="http://exalon.co.za/africall/blog/?page_id=21"
onmouseover="changeImages('template_13', 'images/template_13-over.png'); return true;"
onmouseout="changeImages('template_13', 'images/template_13.png'); return true;"
onmousedown="changeImages('template_13', 'images/template_13-over.png'); return true;"
onmouseup="changeImages('template_13', 'images/template_13-over.png'); return true;">
<img name="template_13" src="images/template_13.png" width="220" height="59" border="0" alt="" align="top"></a></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="8" alt="" align="top"></td>
</tr>
<tr valign="top">
<td colspan="3" valign="top">
<img src="images/template_14.png" width="212" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="8" alt="" align="top"></td>
</tr>
<tr valign="top">
<td colspan="3" rowspan="4" valign="top">
<table boder="0" cellpadding="10px" background="images/template_15.png" width="212" height="0" alt="">
<tr valign="top">
<td valign="top"></td>
</tr>
</table>
  </td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="43" alt="" align="top"></td>
</tr>
<tr valign="top">
<td colspan="3" valign="top">
<a href="http://exalon.co.za/africall/blog/?page_id=16"
onmouseover="changeImages('template_16', 'images/template_16-over.png'); return true;"
onmouseout="changeImages('template_16', 'images/template_16.png'); return true;"
onmousedown="changeImages('template_16', 'images/template_16-over.png'); return true;"
onmouseup="changeImages('template_16', 'images/template_16-over.png'); return true;">
<img name="template_16" src="images/template_16.png" width="220" height="80" border="0" alt="" align="top"></a></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="80" alt="" align="top"></td>
</tr>
<tr valign="top">
<td colspan="3" valign="top">
<a href="http://www.exalon.co.za/africall/blog"
onmouseover="changeImages('template_17', 'images/template_17-over.png'); return true;"
onmouseout="changeImages('template_17', 'images/template_17.png'); return true;"
onmousedown="changeImages('template_17', 'images/template_17-over.png'); return true;"
onmouseup="changeImages('template_17', 'images/template_17-over.png'); return true;">
<img name="template_17" src="images/template_17.png" width="220" height="61" border="0" alt="" align="top"></a></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="61" alt="" align="top"></td>
</tr>
<tr valign="top">
<td colspan="3" rowspan="4" valign="top">
<a href="newsandspecials.php"
onmouseover="changeImages('template_18', 'images/template_18-over.png'); return true;"
onmouseout="changeImages('template_18', 'images/template_18.png'); return true;"
onmousedown="changeImages('template_18', 'images/template_18-over.png'); return true;"
onmouseup="changeImages('template_18', 'images/template_18-over.png'); return true;">
<img name="template_18" src="images/template_18.png" width="220" height="68" border="0" alt="" align="top"></a></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="49" alt="" align="top"></td>
</tr>
<tr valign="top">
<td colspan="3" valign="top">
<img src="images/template_19.png" width="212" height="7" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="7" alt="" align="top"></td>
</tr>
<tr valign="top">
<td colspan="3" valign="top">
<img src="images/template_20.png" width="212" height="2" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="2" alt="" align="top"></td>
</tr>
<tr valign="top">
<td rowspan="5" valign="top">
<img src="images/template_21.png" width="22" height="320" alt="" align="top"></td>
<td rowspan="4" valign="top">
<img src="images/template_22.png" width="161" height="302" alt="" align="top">   </td>
<td rowspan="5" valign="top">
<img src="images/template_23.png" width="29" height="320" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="10" alt="" align="top"></td>
</tr>
<tr valign="top">
<td colspan="3" valign="top">
<a href="contactus.php"
onmouseover="changeImages('template_24', 'images/template_24-over.png'); return true;"
onmouseout="changeImages('template_24', 'images/template_24.png'); return true;"
onmousedown="changeImages('template_24', 'images/template_24-over.png'); return true;"
onmouseup="changeImages('template_24', 'images/template_24-over.png'); return true;">
<img name="template_24" src="images/template_24.png" width="220" height="71" border="0" alt="" align="top"></a></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="71" alt="" align="top"></td>
</tr>
<tr valign="top">
<td valign="top">
<img src="images/template_25.png" width="172" height="178" alt="" align="top"></td>
<td colspan="2" rowspan="6" valign="top">
<img src="images/template_26.png" width="48" height="264" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="178" alt="" align="top"></td>
</tr>
<tr valign="top">
<td rowspan="6" valign="top">
<img src="images/template_27.png" width="172" height="102" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="43" alt="" align="top"></td>
</tr>
<tr valign="top">
<td valign="top">
<img src="images/template_28.png" width="161" height="18" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="18" alt="" align="top"></td>
</tr>
<tr valign="top">
<td colspan="4">
<img src="images/template_29.png" width="565" height="3" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="3" alt="" align="top"></td>
</tr>
<tr valign="top">
<td colspan="4" rowspan="2" valign="top">
<img src="images/template_30.png" width="565" height="22" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="14" alt="" align="top"></td>
</tr>
<tr valign="top">
<td rowspan="2">
<img src="images/template_31.png" width="15" height="24" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="8" alt="" align="top"></td>
</tr>
<tr valign="top">
<td colspan="6">
<img src="images/template_32.png" width="613" height="16" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="1" height="16" alt="" align="top"></td>
</tr>
<tr valign="top">
<td valign="top">
<img src="images/spacer.gif" width="172" height="1" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="5" height="1" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="43" height="1" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="353" height="1" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="22" height="1" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="161" height="1" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="29" height="1" alt="" align="top"></td>
<td valign="top">
<img src="images/spacer.gif" width="15" height="1" alt="" align="top"></td>
<td></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>Try adding this to each of the tags in the menu.
style="padding:0px;margin:0px;"

So, for example, that would look something like this:
Code: [Select]<td style="padding:0px;margin:0px;" colspan="3" valign="top">

I also found something (accidentally) - your background image. Do you want that to repeat across the screen?Thanks for that!
Unfortunately it didn't do the trick.. 
Thanks for noticing, I actually don't want it to repeat!Okay.

Code: [Select]<td colspan="3" valign="top">That's what you have now.

What I can see wrong is that it spans 3 columns, but then you have another after it, which makes 4 columns. Then in the next you only have 3 columns. That's about the easiest way to explain it.
In other words, I'd try removing the with the spacer image.YAY!
That made a difference!
http://www.exalon.co.za/africall/tours.html
I only have gaps 2 big gaps left between the menu items
then few small gaps between the contnent and the right hand side boxes.
  SO HAPPY though!Great.

Without looking at the code, I'd say it's probably the same thing for the right side of the page.I've taken out all the spacer images, there were quite a few..!
Not quite clued up on how they get put there??
Thanks for that! It really made a difference! 
It just isn't 100% yet, not the way it displays in chrome I mean?
Am I missing something? Here is what I've done:
Code: [Select]<html>
<head>
<title>Unique Travel Experience in Africa!</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="keywords">
<meta name="description" content="discription">
<!-- ImageReady Preload Script (templaterolled.psd) -->
<script type="text/javascript">
<!--

function newwindow(name)
{
window.open(name,'','width=1024,height=683,resizable=no,scrollbars=0,left=0,right=0');
}

// -->
</script>
<!-- ImageReady Preload Script (templaterolled.psd) -->
<SCRIPT TYPE="text/javascript">
<!--

function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}

function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}

var preloadFlag = false;
function preloadImages() {
if (document.images) {
template_05_over = newImage("images/template_05-over.png");
template_09_over = newImage("images/template_09-over.png");
template_11_over = newImage("images/template_11-over.png");
template_12_over = newImage("images/template_12-over.png");
template_13_over = newImage("images/template_13-over.png");
template_16_over = newImage("images/template_16-over.png");
template_17_over = newImage("images/template_17-over.png");
template_18_over = newImage("images/template_18-over.png");
template_24_over = newImage("images/template_24-over.png");
preloadFlag = true;
}
}

// -->
</script>
<!-- End Preload Script -->
<link rel="stylesheet" href="style.css">
<style type="text/css">
<!--
.style1 {font-size: 14px}
.style2 {font-size: 14}
.style3 {font-size: 10px}
-->
</style>
</head>
<body background="bg1.jpg" marginwidth="0" marginheight="0" onLoad="preloadImages();">
<!-- ImageReady Slices (templaterolled.psd) -->
<table id="Table_01" align="center" width="801" height="0" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td style="padding:0px;margin:0px;"colspan="2" valign="top">
<img src="images/template_01.png" width="177" height="10" alt="" align="top"></td>
<td style="padding:0px;margin:0px;" colspan="6" rowspan="2" valign="top">
<table border="0" background="images/template_02.png" width="623" height="137" alt="">
<tr valign="top">
<td style="padding:0px;margin:0px;" valign="top"><center><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="505" height="141" title="Header"></center>
              <param name="movie" value="images/Movie1.swf">
              <param name="quality" value="high">
              <embed src="images/Movie1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="505" height="141"></embed>
  </object></td>
</tr>
</table></td>
</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" colspan="2" rowspan="2" valign="top"><img src="images/AfricaCallingLogo.JPG" width="177" height="131" align="top"></td>
</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" colspan="6" valign="top">
<img src="images/template_04.png" width="623" height="4" alt="" align="top"></td>
</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" colspan="3" valign="top">
<a href="index.php"
onmouseover="changeImages('template_05', 'images/template_05-over.png'); return true;"
onmouseout="changeImages('template_05', 'images/template_05.png'); return true;"
onmousedown="changeImages('template_05', 'images/template_05-over.png'); return true;"
onmouseup="changeImages('template_05', 'images/template_05-over.png'); return true;">
<img name="template_05" src="images/template_05.png" width="220" height="60" border="0" alt="" align="top"></a></td>
<td width="365" rowspan="18" style="padding:0px;margin:0px;">
<table border="0" background="images/template_06.png" width="353" height="100%" alt="">
<tr valign="top">
<td style="padding:0px;margin:0px;" valign="top"><center>
  <img src="images/toursheading.png" width="91" height="42" align="top">
</center>  
  <a href="exclusivesafaris.php"><img src="images/eslink.png" alt="Exclusive Safaris" width="160" height="160" border="0" align="top"></a><a href="kilimanjarohikes.php"><img src="images/khlink.png" alt="Kilimanjaro Hikes" width="160" height="160" border="0" align="top"><br>
              </a><a href="mokorosafaris.php"><img src="images/mslink.png" alt="Mokoro Safaris" width="160" height="160" border="0" align="top"></a> <a href="overlandtours.php"><img src="images/otlink.png" alt="Overland Tours" width="160" height="160" border="0" align="top"><br>
                                        </a><a href="selfdrivetours.php"><img src="images/sdplink.png" alt="Self Drive Packages" width="160" height="160" border="0" align="top"></a> <a href="volunteerprojects.html"><img src="images/vplink.png" alt="Volunteer Packages" width="160" height="160" border="0" align="top"><br>
                                                      </a><a href="walkingsafaris.php"><img src="images/wslink.png" alt="Walking Safari" width="160" height="160" border="0" align="top"></a> <a href="canoesafaris.php"><img src="images/cslink.png" alt="Canoe Safari" width="160" height="160" border="0" align="top"><br>
                                                                    </a><a href="campingsafaris.php"><img src="images/caslink.png" alt="Camping Safari" width="160" height="160" border="0" align="top"></a> <a href="adrenalineaddiction.php"><img src="images/adlink.png" alt="Adrenaline Addiction" width="160" height="160" border="0" align="top"></a><br>
              <a href="sharkcagediving.php"><img src="images/scdlink.png" alt="Shark Cage Diving" width="160" height="160" border="0" align="top"></a> <a href="kayakingholidays.php"><img src="images/kahlink.png" alt="Kayaking holidays" width="160" height="160" border="0" align="top"></a><br>
              <a href="familyholidays.php"><img src="images/fhlink.png" alt="Family Holidays" width="160" height="160" border="0" align="top"></a> <a href="honeymoon.php"><img src="images/honarr.png" alt="honeymoon arrangements" width="160" height="160" border="0" align="top"><br>
                            </a><a href="fifaworldcup.php">
              <center>
                <img src="images/fifalink.png" alt="Fifa 2010" width="160" height="160" border="0" align="top">
              </center>
              </a>   <br>
    <br>
   <center>
      </center></tr>
  </table>
  </td>
<td style="padding:0px;margin:0px;" colspan="3" rowspan="6" valign="top">
<table border="0" cellpadding="10px" background="images/template_07.png" width="213" height="0" alt="">
<tr valign="top">
<td width="189" height="237" valign="top" style="padding:0px;margin:0px;"><p>&nbsp;</p>
  <p>&nbsp;</p>
  <p align="center" class="style6"><span class="style1"><span class="style2"><span class="style3"><a href="volunteerprojects.html">10%   off Volunteer Projects</a></span></span></span></p>
  <p align="center" class="style6 style3"><a href="honeymoon.html">10%   off Honeymoon Packages</a></p>
  <p align="center" class="style6 style3"><a href="fifaworldcup.html">FIFA   World Cup Specials</a></p>
  <p align="center" class="style6"><span class="style3"><a href="services.php">Crazy   Cape Town Special</a></span></p>   </td>
</tr>
  </table>
  </td>
<td width="16" rowspan="20" valign="top" style="padding:0px;margin:0px;">
<img src="images/template_08.png" width="15" height="835" alt="" align="top"></td>
</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" colspan="3" valign="top">
<a href="travelpolicy.php"
onmouseover="changeImages('template_09', 'images/template_09-over.png'); return true;"
onmouseout="changeImages('template_09', 'images/template_09.png'); return true;"
onmousedown="changeImages('template_09', 'images/template_09-over.png'); return true;"
onmouseup="changeImages('template_09', 'images/template_09-over.png'); return true;">
<img name="template_09" src="images/template_09.png" width="220" height="58" border="0" alt="" align="top"></a></td>

</tr>
<tr>
<td style="padding:0px;margin:0px;" colspan="3" valign="top">
<img src="images/template_10.png" width="220" height="1" alt="" align="top"></td>

</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" colspan="3" valign="top">
<a href="tours.html"
onmouseover="changeImages('template_11', 'images/template_11-over.png'); return true;"
onmouseout="changeImages('template_11', 'images/template_11.png'); return true;"
onmousedown="changeImages('template_11', 'images/template_11-over.png'); return true;"
onmouseup="changeImages('template_11', 'images/template_11-over.png'); return true;">
<img name="template_11" src="images/template_11.png" width="220" height="59" border="0" alt="" align="top"></a></td>

</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" colspan="3" valign="top">
<a href="services.php"
onmouseover="changeImages('template_12', 'images/template_12-over.png'); return true;"
onmouseout="changeImages('template_12', 'images/template_12.png'); return true;"
onmousedown="changeImages('template_12', 'images/template_12-over.png'); return true;"
onmouseup="changeImages('template_12', 'images/template_12-over.png'); return true;">
<img name="template_12" src="images/template_12.png" width="220" height="62" border="0" alt="" align="top"></a></td>

</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" colspan="3" rowspan="3" valign="top">
<a href="http://exalon.co.za/africall/blog/?page_id=21"
onmouseover="changeImages('template_13', 'images/template_13-over.png'); return true;"
onmouseout="changeImages('template_13', 'images/template_13.png'); return true;"
onmousedown="changeImages('template_13', 'images/template_13-over.png'); return true;"
onmouseup="changeImages('template_13', 'images/template_13-over.png'); return true;">
<img name="template_13" src="images/template_13.png" width="220" height="59" border="0" alt="" align="top"></a></td>

</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" colspan="3" valign="top">
<img src="images/template_14.png" width="212" alt="" align="top"></td>

</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" colspan="3" rowspan="4" valign="top">
<table boder="0" cellpadding="10px" background="images/template_15.png" width="213" height="0" alt="">
<tr valign="top">
<td width="187" height="228" valign="top" style="padding:0px;margin:0px;"></td>
</tr>
  </table>
  </td>

</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" colspan="3" valign="top">
<a href="http://exalon.co.za/africall/blog/?page_id=16"
onmouseover="changeImages('template_16', 'images/template_16-over.png'); return true;"
onmouseout="changeImages('template_16', 'images/template_16.png'); return true;"
onmousedown="changeImages('template_16', 'images/template_16-over.png'); return true;"
onmouseup="changeImages('template_16', 'images/template_16-over.png'); return true;">
<img name="template_16" src="images/template_16.png" width="220" height="80" border="0" alt="" align="top"></a></td>

</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" colspan="3" valign="top">
<a href="http://www.exalon.co.za/africall/blog"
onmouseover="changeImages('template_17', 'images/template_17-over.png'); return true;"
onmouseout="changeImages('template_17', 'images/template_17.png'); return true;"
onmousedown="changeImages('template_17', 'images/template_17-over.png'); return true;"
onmouseup="changeImages('template_17', 'images/template_17-over.png'); return true;">
<img name="template_17" src="images/template_17.png" width="220" height="61" border="0" alt="" align="top"></a></td>

</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" colspan="3" rowspan="4" valign="top">
<a href="newsandspecials.php"
onmouseover="changeImages('template_18', 'images/template_18-over.png'); return true;"
onmouseout="changeImages('template_18', 'images/template_18.png'); return true;"
onmousedown="changeImages('template_18', 'images/template_18-over.png'); return true;"
onmouseup="changeImages('template_18', 'images/template_18-over.png'); return true;">
<img name="template_18" src="images/template_18.png" width="220" height="68" border="0" alt="" align="top"></a></td>

</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" colspan="3" valign="top">
<img src="images/template_19.png" width="212" height="7" alt="" align="top"></td>

</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" colspan="3" valign="top">
<img src="images/template_20.png" width="212" height="2" alt="" align="top"></td>

</tr>
<tr valign="top">
<td width="23" rowspan="5" valign="top" style="padding:0px;margin:0px;">
<img src="images/template_21.png" width="22" height="320" alt="" align="top"></td>
<td width="167" rowspan="4" valign="top" style="padding:0px;margin:0px;">
<img src="images/template_22.png" width="161" height="302" alt="" align="top">   </td>
<td width="29" rowspan="5" valign="top" style="padding:0px;margin:0px;">
<img src="images/template_23.png" width="29" height="320" alt="" align="top"></td>

</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" colspan="3" valign="top">
<a href="contactus.php"
onmouseover="changeImages('template_24', 'images/template_24-over.png'); return true;"
onmouseout="changeImages('template_24', 'images/template_24.png'); return true;"
onmousedown="changeImages('template_24', 'images/template_24-over.png'); return true;"
onmouseup="changeImages('template_24', 'images/template_24-over.png'); return true;">
<img name="template_24" src="images/template_24.png" width="220" height="71" border="0" alt="" align="top"></a></td>

</tr>
<tr valign="top">
<td width="172" valign="top" style="padding:0px;margin:0px;">
<img src="images/template_25.png" width="172" height="178" alt="" align="top"></td>
<td style="padding:0px;margin:0px;" colspan="2" rowspan="6" valign="top">
<img src="images/template_26.png" width="48" height="264" alt="" align="top"></td>

</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" rowspan="6" valign="top">
<img src="images/template_27.png" width="172" height="102" alt="" align="top"></td>

</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" valign="top">
<img src="images/template_28.png" width="161" height="18" alt="" align="top"></td>

</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" colspan="4">
<img src="images/template_29.png" width="565" height="3" alt="" align="top"></td>

</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" colspan="4" rowspan="2" valign="top">
<img src="images/template_30.png" width="565" height="22" alt="" align="top"></td>

</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" rowspan="2">
<img src="images/template_31.png" width="15" height="24" alt="" align="top"></td>

</tr>
<tr valign="top">
<td style="padding:0px;margin:0px;" colspan="6">
<img src="images/template_32.png" width="613" height="16" alt="" align="top"></td>

</tr>

</table>
<!-- End ImageReady Slices -->
</body>
</html>

1311.

Solve : Streaming Video for Church?

Answer»

My local church as asked me to look into ways that we could possibly stream our church service with video and audio, as well as be able to access past recordings (archived for the last three recordings, if possible).

I am thinking about www.UStream.tv , but I am not very familiar with their service.

The church has a fully set up sound system which could be plugged into the computer's input very easily (yall' could hear us sing, if you wanted to). We will look into USB-Based "webcam" cameras of slightly higher quality. (I am sure I will be searching for recommendations on that as well fairly soon). Have a look at this:
http://www.nchsoftware.com/broadcam/index.html

I found it today but I haven't used it. It might work though.Give us the link when you GET it set up.  I always wanted to go to ONLINE church.In small community with Cable TV there may be free or low cost space on the local TV cable.  If that is viable, people without computers could watch.
Quote from: Geek-9pm on January 23, 2010, 06:30:19 PM

In small community with Cable TV there may be free or low cost space on the local TV cable.  If that is viable, people without computers could watch.
They have thought about that, but we live out of the way from the city that holds the fiber and cable companies... not only that, but we would have to manage a broadcast schedule; not that this would be difficult, since you could just have the same thing loop, but to send it back to the cable and fiber companies would cost quite a bit in bandwidth.

Quote from: kpac on January 23, 2010, 04:58:42 PM
Have a look at this:
http://www.nchsoftware.com/broadcam/index.html

I found it today but I haven't used it. It might work though.
The PRICE is workable for our funds, however it requires that you have your own local webhosting -- least, that's what I got out of it. I had Livestream.com recommended. Has anyone used that?
The only problem is that the free version has some sort of monthly limit, from what I was told -- and the Pro Version is EXTREMELY pricey. Well I know that the Times Square New Year's party was broadcast on Livestream.com so it can't be bad.
1312.

Solve : How to make a presentation??

Answer»

how can i connect different pictures and put music in the BACKGROUND to make a PRESENTATION in adobe PREMIERE
i want to make a presentation of our family pictures for my mum.sorry i cant help you about connecting pictures but i KNOW how to put music in the background.
Code: [Select]<bgsound src="musicfile" loop=" " />at the loop you type the number of times you want the music to repeat or if you dont want it to stop write infinite.

example:

1313.

Solve : Design Project Over 2 Weeks?

Answer»

Well i'm on the second week now so maybe you'll just ignore this, but still I'd like some professional feedback on my work as I throw myself into the world of Adobe ILLUSTRATOR :p

Information

I'm having my practical working experience for 2 weeks starting uhh, yesterday. And I'm LEARNING how to use Adobe Illustrator for the printing business (preparing and enhancing everything from hand drawn sketches on PAPER to something you have THOUGHT up in your head)

Anyway there's more information on my blog and I post daily updates with finished projects so, feel FREE to follow me through these weeks xD

WARNING: Do NOT use Internet Explorer because some images are not visible with that browser.

LINK: http://www.phallan.ne1.net

(It is - Of Course - In English)

Thank you :3 feel free to post comments and/or suggestions or maybe even solutions to a problem



/S.This could be considered spam but seeing as you've got no ads or business-related stuff on the site it's alright.

My comment:
Nice header logo.

1314.

Solve : Validation of php drop down menu of month?

Answer»

Cannot get it to validate, for leaps years, and feb,april 31.






$todo=$_POST['todo'];
if(isset($todo) and $todo=="submit"){
$month=$_POST['month'];
$dt=$_POST['dt'];
$year=$_POST['year'];
$date_value="$month/$dt/$year";
echo "mm/dd/yyyy format :$date_value
";
$date_value="$year-$month-$dt";
echo "YYYY-mm-dd format :$date_value
";
}
?&GT;



$m="2,4";
$d="31";
$y="";
If(!checkdate($m,$d,$y)){
echo "invalid DATE";
}else {
echo "Entry date is correct";
}
?>




Select Month
January
February
March
April
May
June
July
August
September
October
November
December



Date
01

02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31




Select Year
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020











I don't see a tag.You need to TELL it when to validate - you haven't told it that now. If there was a submit BUTTON you could validate when it was clicked, ETC.
1315.

Solve : Linking External Stylesheet in table cell?

Answer»

Hi,

I have two web pages each with their EXTERNAL stylesheet. I want ONE to be shown up inside other. I have used tables for the layout. In the LOWER HALF of the page I want the second page to appear. Now since I want the other page to appear in the page. I have placed all its contents in the a table cell on the first page. HOWEVER I want that table cell to inherit the styles defined in the stylesheet for the second page.

Is it possible to get your second external stylesheet to link to a particular cell and not the entire page which would be using its own stylesheet.

I have attached a JPEG IMAGE for your reference.

Thanks.



[attachment deleted by admin] Quote

I want one to be shown up inside other. I have used tables for the layout. In the lower half of the page I want the second page to appear.
What do you mean? Like a frame?

Quote
Is it possible to get your second external stylesheet to link to a particular cell and not the entire page which would be using its own stylesheet.
No, it's not. Why not just added classes or IDs to the table elements? Quote from: rseni on August 22, 2009, 11:10:15 AM
I have two web pages each with their external stylesheet. I want one to be shown up inside other.
Yep, frames would be the way to do that.

Quote from: rseni on August 22, 2009, 11:10:15 AM
However I want that table cell to inherit the styles defined in the stylesheet for the second page.

Is it possible to get your second external stylesheet to link to a particular cell and not the entire page which would be using its own stylesheet.
Here's a reference which explains the three ways to insert CSS: http://www.w3schools.com/CSS/css_howto.asp.  You need to use inline styles elements for the table cell, which is basically what kpac is also saying.  Quote from: rseni on August 22, 2009, 11:10:15 AM
I have used tables for the layout

 

Is it 1999 again?

-rock
1316.

Solve : javascript oop?

Answer»

I just want to ask what is the best ebook for javascript object oriented programming? And also can I download it for free on the NET? ThanxTry here: http://www.onlinecomputerbooks.com/free-javascript-books.phpHere is the most awesome JavaScript book EVER (REVIEW of it)!
JavaScript: The Definitive Guide - 5th Edition

I have it in PDF version so I put it on my sharing account for you.

Removed

Enjoy!

Treval


No hotlinking to uploaded commercial files. You have to PAY for a reason.Like you don't do that yourself, kpac. No actually, never. I don't use file sharing sites or P2P software. What I do and what you're allowed do here are different things, and this thread is not for discussing that anyway.

1317.

Solve : Javascript / CSS files not uploading in dreamweaver cs4?

Answer»

Im sorry, I am not very good at explaining myself but I am gonna TRY to make this make sense.

using CS4 on all these programs

I created a NAV bar for my website in fireworks, it has an "up-state" BUTTON and "down-state" button (image SWAPPING I guess you could say) plus it has dropdown menus.

When I load the buttons into dreamweaver (public_html file) then "import > fireworks html"  The buttons come up fine and when I preview it in IE8 they work great, Drop-down menus come down, buttons change colors when I mouseover them, everything works.

I uploaded them to the server and in the remote view, the JS file and the CSS file are there

Well, the problem occurs when I try to "put" the page I have the buttons on, onto the server (update the page).
It says that the JS and CSS file could not be completed / put on there with the page.  So when I go to the site, I have the buttons which dont change when I mouseover them anymore, then under the buttons, I have the text  thats suppose to be on the dropdown menus just sitting there like text. 

http://grandprixgreensboro.com/GPG-about.htm ... thats what its doing...

What is the problem?  Why wont the JS and CSS file load with the page?

Thanks in advance!are you sure that the javascript and css are in the correct directory on the server?Works for me.  Firefox 3.5 and IE8

-rock

1318.

Solve : Form field prompts?

Answer»

Hi, I have several text fields in a (frontPage) form. I would like to have words (in light gray) in the text boxes to prompt the USER as to the information needed. As soon as the user starts to type in the text box, the 'prompt' would disappear and only the users text would be submitted. I see this used all the time  but don't know how it is done. Is it HTML or java or what?  JavaScript.

Use this:
Code: [Select]<input type="text" value="Input here" onfocus="this.value='';" />
OK, I finally got it to work. The text I want is in the field until I clink into it, what is typed into the field is prosessed by the CGI script. That is all great. What does not happen is the text I want as a prompt is not gray and italic like I want. any suggestions? Here is what I have in the code:

  MAKE:       
   

MODEL:Need more of a script so...

Place this in the
Code: [Select]<script type="text/javascript">
function changeColor()
{
  var input = getElementById('MAKE');
  input.style.Color = "#000";
  input.style.fontStyle = "normal";
}
</script>

And here's the input field:
Code: [Select]<input type="text" style="color:#CCC;font-style:italic;" value="Example Dodge" onfocus="changeColor()" name="MAKE" id="MAKE" size="20" />
OK, Now I know I am becomming a pain.
1) I inserted the script as the last part between HEAD and /HEAD. Do I Need to repeat:
             {
  var input = getElementById('MAKE');
for each time I use this, changing 'MAKE' to each Id? I want to use this for 8 fields!
2) The font is changing correctly but when the user puts data in the field the prompt does not disappear. Stays in background as user types input.
Here is what I did:


function changeColor()
{
  var input = getElementById('MAKE');
  input.style.Color = "#000";
  input.style.fontStyle = "normal";
}



  MAKE:
            


Thanks, Ed Quote
for each time I use this, changing 'MAKE' to each Id? I want to use this for 8 fields!
Sorry, I didn't realise this was for more than one. You can use this instead:

Code: [Select]<script type="text/javascript">
function changeColor(id)
{
  var input = getElementById(id);
  input.style.Color = "#000";
  input.style.fontStyle = "normal";
}
</script>

And the input field:
Code: [Select]<input type="text" style="color:#CCC;font-style:italic;" value="Example Dodge"
onfocus="changeColor(this.id); this.value='';" name="MAKE" id="MAKE" size="20" />
All you have to do is add id="MAKE" to every input field...as well as the onfocus function.

Quote
OK, Now I know I am becomming a pain.
Don't worry about it. OK. I'm learning.
 See, you can teach an old dog new tricks!
This part is still a problem:
2) The font is changing correctly but when the user puts data in the field the prompt does not disappear. Stays in background as user types input.
Thanks. Ed Quote
2) The font is changing correctly but when the user puts data in the field the prompt does not disappear. Stays in background as user types input.
Did you add onfocus="changeColor(this.id); this.value='';" to the field?Here is what i have:



I am ALSO getting a script error on the above line.

Maybe the line before is messing it up with the validation?



EdHmmm, okay try this:

Code: [Select]<input type="text" style="color:#808080;font-style:italic; margin-left:Dodge" value="Example Dodge"
onfocus="changeColor(this.id);" onclick="this.value=";" name="MAKE" id="MAKE" size="20" maxlength="20" />Hi again,

While I was taking your time trying to figure my error I reviewed everything and found the problem.
I had used a " instead of  ' ' , as in      this.value=";"         should have been    this.value='';"   
Now it works and no script error.

Thank You so very much for your patience with me.

The related issue I'm having is with the confirmation page.

My ISP PROVIDES one CGI script which they control. It gives a confirmation page to the customer. This page is called   thankyou.html   and it is in my control.  The script also sends an e-mail. The e-mail SHOWS the field id and the user input.
I can not get the user input to show up on the confirmation page. In the design of the page it shows the field confirmation as a webbot so that part appears to be correct. When it displays after input, it is blank where the user input should be. Is there a way to get this field data to the e-mail and the confirmation page?
Thanks, Ed
Have you got a link to the page?Yes,

www.rubins.com/testing.html
1319.

Solve : Putting URL on page?

Answer»

Anyone know if it's possible to automatically put the current URL into the page. Say I want a LANDING page with the domain on it, but don't want to handcraft each page for each domain.

Thanks in ADVANCE
Code: [Select]<script type="text/javascript">
  document.write("<a href='" + document.location.href + "'>This page</a>");
</script>
Haven't tested that but it should work. document.location.href HOLDS the current URL anyway. Try typing "javascript:ALERT(document.location.href)" into your BROWSER.

1320.

Solve : NEWBIE HELP!! Forms.?

Answer»

I am trying to create a staff control panel for my website so that certain staff can log in and modify areas of the website.

If i create a text box how do i make the results change the html of the page or at LEAST be displayed on the WEBPAGE publically?

Thanks in advanceShort Answer: PHP.

Longer Answer: Use a PHP page (which means you have to be running PHP on your webserver) to take the content of the page and add it to a database.  When you create the HTML file, you collect all the database entries to create the page.

OR

Have each ENTRY into the text box be saved as a new HTML file and when you build the page, just recursively include them all and you've got it all.

Longest answer: I'm not going to take that much time yet.

The problem I have with this is that you want to do something that could open you up to a LOT of security issues.  If you don't even know where to start to DO this, I don't think it's a smart idea to PLUNGE ahead, unless it's a private website that can't be accessed from the internet.

To answer you, finally: Form + PHP + MySQL = "BLOG" - type page

-rock

1321.

Solve : Front Page stretch all the way across the screen help?

Answer»

In the attachment image, is it possible to stretch the table all the way across the browser so that there won't be any gaps on the sides or on the top.

[Saving space, attachment deleted by ADMIN]Are you using any cellspacing or cellpadding in your table?  If so, removing it will help.  But, I believe the best solution is to use border-collapse in a CSS declaration.  Nope...CELL spacing and cell padding is set to 0.

When I increase the width of the table only the right side stretches and leaves STILL leaves a gap on the left of the table.It actually has nothing to do with the table.

Add this to the head.
Code: [Select]<style type="text/css">
  html, body {
    padding: 0;
    MARGIN: 0;
  }
</style>
Oh ok! There it goes!

So if I wanted to use CSS again, would I insert that only in the head?Or PUT it all in a seperate file, called for example style.css.

Then link to it like this (in the head):
Code: [Select]<link href="style.css" rel="stylesheet" type="text/css" />Thanks for your help.

I really appreciate that.No problem!

1322.

Solve : php report in pdf format?

Answer»

ahm here i am again seeking ANSWER in my QUESTION, how to MAKE a php report in pdf FORMAT?  any one can help me?PDFlib needs to be installed on the server.

http://www.php.net/manual/en/book.pdf.php

1323.

Solve : Blank Space between Divs?

Answer» HEY CH forums.  Been a while.

I'm writing a webpage and I've run into something that I CANNOT figure out.

here's the LIVE site:  http://thomasrandolph.info/testing

The issue is the blank area just above the footer.  A look at the source shows this:

Code: [Select]<div id="aboutme">
    <div class="container">
        <div class="content">
        My name is Tom Randolph.
            <br />
            This is my website.
            <br />

            It's broken, so be nice: it's not live yet.
        </div>
    </div>
</div>

<div class="footer">
}
    <a href="index.php">Home</a>
    {}
    <a href="projects.php">Projects</a>
    {}
    <a href="BLOG.php">Blog</a>

    {}
    <a href="extra.php">About Site</a>
    {
    <br />
    <a href="http://www.thomasrandolph.info">thomasrandolph.info</a> &copy; 2009 Thomas Randolph
</div>
</div>
</body>
</html>
As you can see, there is literally nothing but one space between the content and the footer.

The CSS for the page is also in the source, and the applicable sections are:

Code: [Select]/*-----about me-----*/
#aboutme {
margin: 0;
position: relative;

top: -165px;
left: 1px;
}

#aboutme .container{
margin-left: 1px;
}

#aboutme .container .content {
font-family:Helvetica,Arial,Verdana,sans-serif;
font-size:12px;

background:#CCCCFF;

height: 400px;
padding: 45px 0px 0px 255px;
margin: 0px 4px 0px 4px;

-moz-border-radius:35px;
-moz-box-shadow: 0px 5px 5px #666677;

-webkit-border-radius: 35px;
-webkit-box-shadow: 0px 5px 5px #666677;

z-index:0;
}

#aboutme .container .content h1 {
margin: 0;
}
/*-----end about me-----*/

/*-----footer-----*/
.footer {
background-image: url(images/footer_bg.jpg);
background-repeat: repeat-x;
text-align: CENTER;

padding: 4px 4px 4px 4px;
margin: 10px 0px 0px 0px;

height: 40px;

-moz-border-radius-topleft:20px;
-moz-border-radius-topright:20px;
/*-moz-box-shadow: 0px -5px 5px #666666;*/

-webkit-border-top-left-radius: 20px;
-webkit-border-top-right-radius: 20px;
/*-webkit-box-shadow: 0px -5px 5px #666666;*/

position: absolute;
bottom: 0;
width: 100%;

}

/*-----end footer-----*/

I can't figure out where the space is coming from, and any help would be appreciated.  If you need any more info, let me know.

By the way, I'm building the page with PHP, so if that could be pulling in some ERRORS somewhere or something...?

The gap isn't "noticeable" on almost all of the pages, because the footer is specifically placed at the bottom of the page.  In the "Polls" page, however, it is still a particular distance from the bottom of the content div above it, and causes the scrollbars to be unnecessarily large.  If there was no gap, the scrolling would be almost unnecessary.

I'm not so worried about the scrollbars so much as a gap that I can't find the source of.

-rock
1324.

Solve : How to put modules like in my space into front page?

Answer»

This PICTURE shows these modules being pointed to in yahoo. Is there a way I can get these in front page?

[Saving space, ATTACHMENT deleted by ADMIN]Well it's not really that simple, to be honest.

Try having a LOOK around here: http://developer.yahoo.com/How about arranging the cells in my table to WHEREVER I want instead of each cell snapping to the cells adjacent to them.

1325.

Solve : MySQL Query isn't working?

Answer»

I have all the connections and stuff. It does connect, or it would die().
This query is supposed to CHANGE the persons "Status" to $ChangeTo


$query = mysql_query("UPDATE user SET Status = $ChangeTo WHERE username='$user'");


Do you guys see anything wrong?    Have you selected the database?

HTTP://www.w3schools.com/php/php_mysql_update.aspWhen debugging SQL statements, I usually echo the entire query string to the BROWSER so I can see what variable substitutions have happened.

BEWARE SQL INJECTION ATTACKS!

Using a good DB library is good practice.  MD2 from PEAR is really very good and quite easy to use once you get it set up. Quote

BEWARE SQL INJECTION ATTACKS!
I can help you there, if you like. Quote from: kpac on July 22, 2009, 02:43:16 PM
I can help you there, if you like.

If you use a decent library, there's nothing to worry about, really.  What do you normally do, Kpac? Quote
What do you normally do, Kpac?
When hacking into websites?

Well, it does help to know how to break into your own site, and because I do know how, I don't usually use a library. Usually just trial and error with me until I feel it's secure enough. PHP has some great functions for filtering content though. Quote from: kpac on July 23, 2009, 03:23:28 AM
Usually just trial and error with me until I feel it's secure enough.

 

So... a rigorous testing process then!  Well, I've never used PEAR or a libary like that. STILL, I usually not bad at plugging all the holes.
try this and see the difference.
 
$query = mysql_query("UPDATE user SET Status = $ChangeTo WHERE   
      username='$user';");

1326.

Solve : How to use Action?

Answer»

How do you get the action code to direct to a file on hard DRIVE I tried
this ( EXPLORER? Code: [Select]&LT;form action="file:///C:\DOS\JOHN.HTM">
  ...
</form>

1327.

Solve : PERL script to get the last modified date and time?

Answer»

Hi friends,

I have the following PERL code to get the last modified date and time for the files in a folder.

#!/usr/bin/perl
use File::stat;

foreach $ab (ARGV) {
 $sb = stat($ab) ;
 printf scalar LOCALTIME $sb->mtime ;
 print  " -- $ab";
 print "\n" ;
}

The problem with this code is, it is not giving the INFORMATION for all the files if they have same name with different extension, but were modified at the same time.

e.g. if there are 2 files called abcd.exe and abcd.lst in the same folder and have the same last modified date and time, then the above code is giving me only the abcd.lst file last modified date & time info. But my requirement is to print all the files information.

I don't know anything about PERL, and I got the above code is from our company. Please anybody let me know the code to get the last modified date and time for all the files (i.e. in the above e.g. I need to get the last modified date and time for both the files). Thank you very MUCH in advance.the key LIES in ARGV. How are you EXECUTING the script and how many parameters do you pass to the script? if you pass in only abcd.exe, of course the script would give you only 1 result. if you are a beginner with Perl, at least make an effort to study the Perl docs before attempting to change other people's code.Hi gh0std0g74,

Thank you for your help/suggestion.

1328.

Solve : codeigniter some error?

Answer» I have a problem with the codeigniter, because when I view it in the browser.,
the expected output wont show,, instead it will only view my php codes.

help me figure it out,,,
I just get this output:


db->query($sql); return $query; } function promoteMDUpdates($newMD, $rowBaseshop, $newLevelFromDate, $currentLevelEndDate, $newLevelEndDate) { /* 12:18 PM 2/11/2008 Update latest record of member_level with new endDate Insert new record to member_level with new MD, new fromDate and new endDate This will be a function that can and will be called by itself. */ //echo ""; //echo $rowBaseshop['lastName'].", ".$rowBaseshop['firstName']." ".$rowBaseshop['middleName']." (".$rowBaseshop['code'].")"; //echo "
"; $sql = "UPDATE member SET MD = ".$this->db->escape($newMD)." , editedBy = ".$this->db->escape($this->session->userdata('userID')).", editedDate = ".$this->db->escape(NOWDATE)." WHERE code = '".$rowBaseshop['code']."' LIMIT 1; "; //echo "
"; $this->db->query($sql); /* 10:19 AM 2/7/2008 If the baseshop member was recruited AFTER the MD's promotion, only update any records existing in member_level Else update the member_level and insert a new record */ $recruitedAfterPromotion = "FALSE"; // A flag to determine if baseshop member is recruited before or after the MD's promotion $sql = "SELECT * FROM member_level WHERE code = '".$rowBaseshop['code']."' "; $query = $this->db->query($sql); foreach($query->result_array() as $rowBaseshopML) { if($rowBaseshopML['fromDate'] > (substr($newLevelFromDate, 0, 10))) { $recruitedAfterPromotion = "TRUE"; } } //echo "flag? ".$recruitedAfterPromotion; //echo "
"; if($recruitedAfterPromotion == "TRUE") { //echo "
Recruited after promotion
"; if( ($rowBaseshopML['endDate'] >= (substr($newLevelFromDate, 0, 10)) AND ($rowBaseshopML['endDate'] != FINALDATE)) ) { $sql = "UPDATE member_level SET endDate = ".$this->db->escape(substr($currentLevelEndDate, 0, 10)).", recruiter = ".$this->db->escape($newMD)." , MD = ".$this->db->escape($newMD)." , editedBy = ".$this->db->escape($this->session->userdata('userID')).", editedDate = ".$this->db->escape(NOWDATE)." WHERE code = '".$rowBaseshop['code']."' AND MD = '".$rowBaseshop['MD']."'; "; } else { $sql = "UPDATE member_level SET recruiter = ".$this->db->escape($_POST['code'])." , MD = ".$this->db->escape($newMD)." , editedBy = ".$this->db->escape($this->session->userdata('userID')).", editedDate = ".$this->db->escape(NOWDATE)." WHERE code = '".$rowBaseshop['code']."' AND MD = '".$rowBaseshop['MD']."'; "; } //echo "flagsql: ".$sql; //echo "

"; $this->db->query($sql); } else { //echo "
Recruited before promotion
"; $sql = "UPDATE member_level SET endDate = ".$this->db->escape(substr($currentLevelEndDate, 0, 10)).", editedBy = ".$this->db->escape($this->session->userdata('userID')).", editedDate = ".$this->db->escape(NOWDATE)." WHERE code = '".$rowBaseshop['code']."' AND endDate = '".FINALDATE."' LIMIT 1; "; //echo $sql; //echo "
"; $this->db->query($sql); $sql = "INSERT INTO member_level ( code, level, fromDate, endDate, recruiter, MD, createdBy, createdDate, editedBy, editedDate ) VALUES (" .$this->db->escape($rowBaseshop['code']).", " .$this->db->escape($rowBaseshop['level']).", " .$this->db->escape(substr($newLevelFromDate, 0, 10)).", " .$this->db->escape(substr($newLevelEndDate, 0, 10)).", " .$this->db->escape($rowBaseshop['recruiter']).", " .$this->db->escape($newMD).", " .$this->db->escape($this->session->userdata('userID')).", " .$this->db->escape(NOWDATE).", " .$this->db->escape($this->session->userdata('userID')).", " .$this->db->escape(NOWDATE)." )"; //echo $sql; $this->db->query($sql); } //search for this member's recruits and update their MDs as well by calling this function $sql = "SELECT * FROM member WHERE recruiter = '".$rowBaseshop['code']."' AND code != '".$_POST['exchangeLeg']."' ORDER BY lastName ASC"; $query = $this->db->query($sql); $rowBaseshop = $query->row_array(); if( $query->num_rows() > 0 ) { //echo "
recruits: ".$query->num_rows(); foreach($query->result_array() as $rowBaseshop) { $this->adminmodel->promoteMDUpdates($newMD, $rowBaseshop, $newLevelFromDate, $currentLevelEndDate, $newLevelEndDate); } } //echo ""; //echo "
"; } function getMemberLevel2($code, $effectivityDate) { // gets the member's level from the member_level table $sql = "SELECT * FROM member_level WHERE code = '".$code."' AND ('".$effectivityDate."' >= fromDate AND endDate >= '".$effectivityDate."') LIMIT 1"; $query = $this->db->query($sql); if($query->num_rows() > 0) { $row = $query->row(); return $row->level; } else { show_error('Error: Level not found for '.$code.' during the business date '.$effectivityDate); } } function sortHierarchy($hierarchy) { function _levelCompare($a, $b) { if($a['level'] == $b['level']) { if($a['rate'] < $b['rate']) { return 1; } else { return -1; } } elseif($a['level'] < $b['level']) { return -1; } else { return 1; } } usort($hierarchy, '_levelCompare'); return $hierarchy; } function fetchDate($dateYear=NULL, $dateMonth=NULL, $dateDay=NULL) { if($dateYear AND $dateMonth AND $dateDay) { $formattedDate = $dateYear."-".$dateMonth."-".$dateDay; } else { show_error('Incomplete Date fields'); } return $formattedDate; } function getMD($code, $info) { $sql = "SELECT MD FROM member WHERE code = ".$this->db->escape($code)." LIMIT 1"; $query = $this->db->query($sql); if($query->num_rows() > 0) { $row = $query->row(); $MDCode = $row->MD; } $sql = "SELECT * FROM member WHERE code = ".$this->db->escape($MDCode)." LIMIT 1"; $query = $this->db->query($sql); if($query->num_rows() > 0) { $row = $query->row(); } if($info == "name") { $memberName = $row->lastName.", ".$row->firstName." ".$row->middleName; return $memberName; } else { return $row->code; } } function createMemberInfo2($code, $name, $level, $generation, $rate, $payout, $execBonus, $WTRate, $CBRRate) { /* 4:56 PM 1/9/2008 Removed the element 'execRate' because that value is now used by 'rate' 3:57 PM 1/2/2008 Similar to createMemberInfo, except that it ALSO sets the other values that otherwise need to be computed. Used mainly for Company, CEO-MD Bonus, and Bonus Pool. */ $payout = round($payout, 2); $wtax = round(($payout * $WTRate),2); $cbr = round(($payout * $CBRRate),2); $netPayout = round(($payout - ($wtax + $cbr)),2); $member = array( 'code' => $code, 'name' => $name, 'level' => $level, 'generation' => $generation, 'rate' => $rate, 'payout' => $payout, 'execBonus' => $execBonus, 'wtax' => $wtax, 'cbr' => $cbr, 'netPayout' => $netPayout ); return $member; } function createMemberInfo($code, $name, $level, $generation, $rate, $payout) { //$payout = number_format($payout,'2','.',','); $member = array( 'code' => $code, 'name' => $name, 'level' => $level, 'generation' => $generation, 'rate' => $rate, 'payout' => $payout ); return $member; } function getExecutiveCommission($rate, $commission) { $executiveCommission = $commission * $rate; return $executiveCommission; } function getExecutiveCommissionVersion1 ($level, $SMDRate, $NMDRate, $levelSMD, $levelNMD, $SMDCommission, $NMDCommission, $netCommission) { $executiveCommission[] = array(); if($level == $levelSMD AND $SMDCommission == NULL) { //echo "SMD"; $executiveCommission['payout'] = $netCommission * $SMDRate; $executiveCommission['rate'] = $SMDRate; } elseif($level == $levelNMD AND $NMDCommission == NULL) { //echo "NMD"; $executiveCommission['payout'] = $netCommission * $NMDRate; $executiveCommission['rate'] = $NMDRate; if($SMDCommission == NULL) { $executiveCommission['payout'] += $netCommission * $SMDRate; $executiveCommission['rate'] = $NMDRate."(+".$SMDRate.")" ; } } else { $executiveCommission['payout'] = 0; $executiveCommission['rate'] = 0; } return $executiveCommission; /*if(($MDInfo['level'] > $levelMD) AND (($SMDCommission == NULL) OR ($NMDCommission == NULL)) ) { if($MDInfo['level'] == $levelSMD) { $executiveRate = $SMDRate; $SMDCommission = $executiveCommission = $netCommission * $executiveRate; } elseif($MDInfo['level'] == $levelNMD) { $executiveRate = $NMDRate; $NMDCommission = $executiveCommission = $netCommission * $executiveRate; } echo "
Executive Commision: P".$executiveCommission." ( Rate: ".$executiveRate.")"; } */ } function getMDGenerationRateLeftover($code) { /* Get leftover commission from MD Generations */ switch($code) { case '1': $companyMDGenerationCommissionRate = 0.0975; break; case '2': $companyMDGenerationCommissionRate = 0.0475; break; case '3': $companyMDGenerationCommissionRate = 0.0275; break; case '4': $companyMDGenerationCommissionRate = 0.0125; break; case '5': $companyMDGenerationCommissionRate = 0.025; break; case '6': $companyMDGenerationCommissionRate = 0; break; default: $companyMDGenerationCommissionRate = 0.1925; break; } return $companyMDGenerationCommissionRate; } function getName($code, $table) { $sql = "SELECT * FROM ".$table." WHERE code = ".$this->db->escape($code)." LIMIT 1"; $query = $this->db->query($sql); if($query->num_rows() > 0) { $row = $query->row(); } $memberName = $row->lastName.", ".$row->firstName." ".$row->middleName; return $memberName; } function getMemberInfo($code, $effectivityDate=NULL) { $memberInfo = NULL; $sql = "SELECT * FROM member WHERE code = ".$this->db->escape($code)." LIMIT 1"; $query = $this->db->query($sql); //echo $query->num_rows(); if($query->num_rows() > 0) { $row = $query->row(); $memberInfo['code'] = $row->code; $memberInfo['lastName'] = $row->lastName; $memberInfo['firstName'] = $row->firstName; $memberInfo['middleName'] = $row->middleName; $memberInfo['level'] = $row->level; $memberInfo['MD'] = $row->MD; $memberInfo['recruiter'] = $row->recruiter; $query->free_result(); if($effectivityDate != NULL) { //echo "
recruiterWithEffDate: ".$memberInfo['code']." ".$effectivityDate."
"; $sql = "SELECT * FROM member_level WHERE code = '".$memberInfo['code']."' AND ('".$effectivityDate."' >= fromDate AND endDate >= '".$effectivityDate."') LIMIT 1"; //echo $sql; exit(); $query = $this->db->query($sql); if($query->num_rows() > 0) { $row = $query->row(); $memberInfo['level'] = $row->level; } else { $errorMessage = $code." does not exist in the database.

This code refers to either the agent or part of the agent's hierarchy.

Please check the member's database."; show_error($errorMessage); } } return $memberInfo; } else { $errorMessage = $code." does not exist in the database.

This code refers to either the agent or part of the agent's hierarchy.

Please check the member's database."; show_error($errorMessage); //quit(); //$data['details'] = $code." does not exist in the database"; //$this->load->view('error',$data); } } function getRecruiter($agentCode, $effectivityDate) { $sql = "SELECT * FROM member_level WHERE code = '".$agentCode."' AND ('".$effectivityDate."' >= fromDate AND endDate >= '".$effectivityDate."') LIMIT 1"; $query = $this->db->query($sql); if($query->num_rows() > 0) { $row = $query->row(); $getRecuiter = $row->recruiter; $query->free_result(); return $getRecuiter; } else { $errorMessage = $code." does not exist in the database.

This code refers to either the agent or part of the agent's hierarchy.

# Please check the member's database."; show_error($errorMessage); } } function getMemberRate($level) { //KBNotes 9:39 AM 12/15/2007: Are the level and rates fixed or should they be retrieved from a database? switch($level) { case '10': //Trainee Associate $memberRate = .32; break; case '20': //Associate $memberRate = .32; break; case '30': //FA $memberRate = .42; break; case '40': //SA $memberRate = .52; break; case '50': //MD $memberRate = .65; break; case '60': //SMD $memberRate = .65; break; case '70': //NMD $memberRate = .65; break; case '80': //CEO $memberRate = .65; break; default: $memberRate = .65; break; } return $memberRate; } function getGenerationRate($MDGeneration) { switch($MDGeneration) { case '1': $MDGenerationRate = .095; break; case '2': $MDGenerationRate = .05; break; case '3': $MDGenerationRate = .02; break; case '4': $MDGenerationRate = .015; break; case '5': $MDGenerationRate = .01; break; case '6': $MDGenerationRate = .0025; break; case '0': //CEO $MDGenerationRate = .01; break; default: $MDGenerationRate = 0; break; } return $MDGenerationRate; } function getGeneration($code, $levelCEO) { //$currentMD = $code; //$CEO = "0019AF"; //KBNOTE: change this to the CEO code later $counter = 0; $sql = "SELECT level, MD from member WHERE code = '$code' LIMIT 1"; $query = $this->db->query($sql); $row = $query->row(); $query->free_result(); //while($currentMD != $CEO) { while($row['level'] < $levelCEO) { $sql = "SELECT level, MD from member WHERE code = '".$row['MD']."' LIMIT 1"; $query = $this->db->query($sql); $row = $query->row(); $query->free_result(); //$currentMD = $row->MD; $counter += 1; } return $counter; } function getPartnerName($code) { //temp setup if($code == "PLPI") { return "Prudentialife Plans, Inc."; } elseif($code == "PLOP") { return "Prudentialife OPTIMA Funds, Inc."; } elseif($code == "PLHC") { return "Prudentialife HealthCare, Inc."; } elseif($code == "GP") { return "Generali Pilipinas"; } elseif($code == "PHI") { return "Philam Insurance"; } } function getProductName($code) { //temp setup if($code == "0005") { return "Life - Traditional - Basic"; } elseif($code == "0010") { return "Life - Traditional - Value Plus"; } elseif($code == "0015") { return "Life - Traditional - Premium"; } elseif($code == "0020") { return "Life - Flexi - Basic"; } elseif($code == "0025") { return "Life - Flexi - Value Plus"; } elseif($code == "0030") { return "Life - Flexi - Premium"; } elseif($code == "0035") { return "Life - Cremation - Basic"; } elseif($code == "0040") { return "Life - Cremation - Value Plus"; } elseif($code == "0045") { return "Life - Cremation - Premium"; } elseif($code == "0050") { return "Pension - Fund Starter"; } elseif($code == "0055") { return "Pension - Fund Builder"; } elseif($code == "0060") { return "Pension - Fund Builder Plus"; } elseif($code == "0065") { return "Pension - Premium Fund Builder"; } elseif($code == "0070") { return "Pension - Fund Secure"; } elseif($code == "0075") { return "Pension - Silver Fund Saver"; } elseif($code == "0080") { return "Pension - Wealth Builder"; } elseif($code == "0081") { return "Pension - Wealth Multiplier"; } elseif($code == "0082") { return "Pension - Wealth Multiplier Plus"; } elseif($code == "0085") { return "Education - PowerEd Persona A"; } elseif($code == "0090") { return "Education - PowerEd Persona B"; } elseif($code == "0095") { return "Education - PowerEd Prima"; } elseif($code == "0100") { return "Education - PowerEd Magna"; } elseif($code == "0105") { return "Education - PowerEd Summa"; } elseif($code == "0110") { return "Education - PowerEd Omni"; } elseif($code == "0115") { return "Primelife"; } elseif($code == "0120") { return "Serenity Gold"; } elseif($code == "0125") { return "Health Protect Plan 100"; } elseif($code == "0130") { return "Health Protect Plan 200"; } elseif($code == "0135") { return "Health Protect Plus - Plan 100"; } elseif($code == "0140") { return "Health Protect Plus - Plan 200"; } elseif($code == "0141") { return "Welcare Card Elite"; } elseif($code == "0150") { return "General Homeowner Protect"; } elseif($code == "0155") { return "Fire Commercial"; } elseif($code == "0160") { return "Commercial Vehicle"; } elseif($code == "0165") { return "Group Accident"; } elseif($code == "0170") { return "Private Car"; } elseif($code == "0175") { return "Fire General Business-Restaurant"; } elseif($code == "0180") { return "Fire Retail"; } else { $strSQL = "select *" ." "."from product" ." "."where code = {$this->db->escape($code)}"; $query = $this->db->query($strSQL); if ($query->num_rows() > 0) { $row = $query->row(); return $row->desc; } } } function getScholasticLevel($code) { if($code == "E") { return "Elementary"; } elseif($code == "HS") { return "High School"; } elseif($code == "C") { return "College"; } } function getModeOfPayment($code) { if($code == "SC") { return "Spot Cash"; } elseif($code == "A") { return "Annual"; } elseif($code == "SA") { return "Semi-Annual"; } elseif($code == "Q") { return "Quarterly"; } elseif($code == "M") { return "Monthly"; } } function getSaleType($code) { if($code == "I") { return "Individual"; } elseif($code == "G") { return "Group"; } } function getAdmin($code){ $sql = "SELECT * FROM users_admin WHERE id = ".$this->db->escape($code)." LIMIT 1"; $query = $this->db->query($sql); $row = $query->row(); if($query->num_rows() == 0) { return NULL; } else { return $row->lastName.", ".$row->firstName." ".$row->middleName; } } function getClientName($code) { $sql = "SELECT * FROM client WHERE code = '".$code."' LIMIT 1"; $query = $this->db->query($sql); $row = $query->row(); $query->free_result(); return $row->lastName.", ".$row->firstName." ".$row->middleName; } function getAgent($code){ $sql = "SELECT * FROM member WHERE code = ".$this->db->escape($code)." LIMIT 1"; $query = $this->db->query($sql); $row = $query->row(); if($query->num_rows() == 0) { return NULL; } else { return $row->lastName.", ".$row->firstName." ".$row->middleName; } } /** * Function for client's status by Joseph Ian G. * * param unknown_type $code * return unknown */ /*function getStatus($code) { $sql = "SELECT * FROM client WHERE code = '".$code."' LIMIT 1"; $query = $this->db->query($sql); $row = $query->row(); $query->free_result(); return $row->lastName.", ".$row->firstName." ".$row->middleName; }*/ function checkField($field, $fieldType) { if ($field==NULL) { return "".$fieldType." field missing.
# "; } } function validateCode($code, $codeType, $table) { //echo "foobar ".$code; $errorMessage = ""; if($table == "client") { $sql = "SELECT * FROM client WHERE code = ".$this->db->escape($code)." LIMIT 1"; } else { $sql = "SELECT * FROM member WHERE code = ".$this->db->escape($code)." LIMIT 1"; } $query = $this->db->query($sql); if($query->num_rows() == 0) { $errorMessage .= "The ".$codeType." code is invalid or missing.
"; } $query->free_result(); return $errorMessage; } function getMemberLevel($level) { $sql = "SELECT * FROM level WHERE code = ".$level." LIMIT 1"; $query = $this->db->query($sql); $row = $query->row(); $query->free_result(); return $row->name; } function getMonth($month) { $monthName = NULL; switch($month) { case "01": $monthName = "January"; break; case "02": $monthName = "February"; break; case "03": $monthName = "March"; break; case "04": $monthName = "April"; break; case "05": $monthName = "May"; break; case "06": $monthName = "June"; break; case "07": $monthName = "July"; break; case "08": $monthName = "August"; break; case "09": $monthName = "September"; break; case "10": $monthName = "October"; break; case "11": $monthName = "November"; break; case "12": $monthName = "December"; break; } return $monthName; } function getTitle($myTable, $myId) { $tempQuery = $this->db->getwhere($myTable, array(id => $myId) ); $tempRow = $tempQuery->row(); $tempQuery->free_result(); return $tempRow->title; } function getTalents($talentTypeId, $bookId) { //Get all the records that are related to this bookId. $query = $this->db->getwhere(relvar_books_talents, array(books_id => $bookId, talent_types_id => $talentTypeId) ); $num_rows = $query->num_rows(); for($i=0; $i < $num_rows; $i++) { $row = $query->row($i); $query2 = $this->db->getwhere(talents, array(id => $row->talents_id) ); $row2 = $query2->row(); $talents_string .= "id.">".$row2->first_name." ".$row2->middle_name." ".$row2->last_name.", "; } $talents_string = trim($talents_string); $talents_string = rtrim($talents_string, ','); $query->free_result(); return $talents_string; } function dropdownTalents($talentType, $query, $talent_types_id, $bookID) { //echo $bookID; //Create the drop down list $options = array(); foreach($query as $objectArray) { foreach($objectArray->result() as $row) { $fullName = $row->last_name.", ".$row->first_name." ".$row->middle_name; $options[$row->id] = $fullName; } } //Use asort to ALPHABETICALLY sort the names without re-indexing them. asort($options); $data = array( 'name' => $talentType.'[]', 'id' => $talentType, 'size' => '3', 'style' => 'width:50%', ); if($bookID) { //Get the selected writers who wrote in this bookCover $selected = array(); $whereArray = array(books_id=> $bookID, talent_types_id => $talent_types_id); $getTalents = $this->db->getwhere('relvar_books_talents', $whereArray ); //echo $getTalents->num_rows(); foreach($getTalents->result() as $tempRow) { $sql = $this->db->getwhere('talents', array(id => $tempRow->talents_id) ); foreach($sql->result() as $row){ $selected[] = $row->id; } } return form_multiselect($data, $options, $selected); } else { return form_multiselect($data, $options); } } function dropdownTalentsForAdd($talentType, $query, $talent_types_id) { //echo $bookID; //Create the drop down list $options = array(); foreach($query as $objectArray) { foreach($objectArray->result() as $row) { $fullName = $row->last_name.", ".$row->first_name." ".$row->middle_name; $options[$row->id] = $fullName; } } //Use asort to alphabetically sort the names without re-indexing them. asort($options); $data = array( 'name' => $talentType.'[]', 'id' => $talentType, 'size' => '3', 'style' => 'width:50%', ); return form_multiselect($data, $options); } function getTalentsController($talentID) { $query = $this->db->getwhere('relvar_talents_talent_types', array(talent_types_id => $talentID) ); $talentsArray = array(); foreach($query->result() as $row) { //echo "foo ". $tempRow->talents_id; $talentsArray[] = $this->db->getwhere('talents', array(id => $row->talents_id) ); //$getWriters[] = $sql->row(); } return $talentsArray; } function getAPV($code) { $sql = "SELECT * FROM client_product_app WHERE agent1 = '".$code."' OR agent2 = '".$code."' ORDER BY businessDate DESC"; $query = $this->db->query($sql); if($query->num_rows() > 0) { echo "

    "; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; foreach($query->result() as $row){ echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
    Application Number   Business Type   APV   Business Date
    ".$row->applicationNumber."   ".$row->businessType."   ".$row->apv."   ".$row->businessDate."
    "; echo "

"; } $query->free_result(); } } ?>
Fatal error: Class 'Adminmodel' not found in C:\wamp\www\brokerage\system\libraries\Loader.php on line 184
Are you running it on a test server on just through a browser?
e.g. is the address -
http://localhost/page.php          or:
file:///C:\Documents\page.phpdude mura man n og orasyon ang imo expected output mka buang og bsahon Quote from: marjune on August 01, 2009, 05:26:10 AM
dude mura man n og orasyon ang imo expected output mka buang og bsahon

Wha..?Old topic. Locked.
1329.

Solve : Image Resize Possible??

Answer»

Hi everyone,

I would LIKE to know if this is possible.On my articles i would like to have images that can be expanded via a mouse hover or a click of the mouse.e.g;like on Ebay where you see a small image and you click on it and it expands to show the full size!Is this possible? is this hard to achieve? can this be done via the editor.

Thanks for any and all ANSWERS....eBay and a lot of other SITES create a new THUMBNAIL image from the larger one, usually. However, you can try this:

Code: [Select]<img src="image.jpg" height="250" width="120" onclick="window.open('http://www.website.com/image.jpg', '_blank', 'width=800, height=500');" />
In the part, "window.open......", the URL should be the same as the image's source.

1330.

Solve : Configuring NMS formmail on local web Server?

Answer»

I am newbie to web-designing and trying to to CONFIGURE NMS formmail
step-by-step as shown on http://www.ironspider.ca/forms/nmsform.htm on
a local XAMPP installation.

PATH TO CGI-BIN: E:\E:\xampp\cgi-bin
Path to Perl: E:\xampp\perl\bin\perl.exe
Path to SendMail : E:\xampp\sendmail\sendmail.exe
PATH to feedback form: http://127.0.0.1/xampp/form.html

CODE OF FORM.HTML



Form Function Test



This is a simple form



First NAME


Last Name


E-Mail       

Pls Enter Your Comments:


 






When i hit submit Firefox gives me an error "Firefox does not know how
to open this address because the protocol isn't associated with any
program.

When i run the localhost\cgi-bin\FormMail.pl in Google Chrome it
provides the following
--------------------------------------…
Error: GET request
The HTML form fails to specify the POST method, so it would not be
correct for this script to take any ACTION in response to your
request.

If you are attempting to configure this form to run with FormMail, you
need to set the request method to POST in the opening form tag, like
this:

FormMail © 2001-2003 London Perl Mongers
--------------------------------------…

Pls help me resolve this error.

Thanks for your kind suggestion and time.I don't know Perl, but I can spot one definite error.

Quote
Code: [Select]<form action="E:\xampp\cgi-bin\FormMail.pl" method="POST">
That's what you have. That way, the file "FormMail.pl" will not be RAN through the server. You need to go to "http://localhost/cgi-bin/FormMail.pl" or "http://127.0.0.1/cgi-bin/FormMail.pl".
1331.

Solve : MySQL , PHP Database (for forums) wont work?

Answer»

All it does is display 1 thread.
Heres the database:

>forums > topics
>> forum_title
>> forum_id
>> forum_section
>> forum_views
>> forum_replies
>> forum_creator
>> forum_sticky

But for some reason, when theres already something in the database, it doesnt post it.
Heres what I think it is

> forums > topics
> forum_sticky (2 rows of 0)


But heres the code:


Code: [Select]for($x=1;$x<=$rn;$x++) {
require "Database/connect.php";
$q = mysql_query("SELECT * FROM topics WHERE forum_id='$x'");
while($q = mysql_fetch_array($q)) {
if($q['forum_sticky'] == "0") {
if($q['forum_section'] == $_GET['ID']) {
echo "
<tr style='background-color:#D4E4F4;'>
<td><span style=\"height:15px;WIDTH:100%;font-weight:bold;font:12px/1.2 Tahoma, Verdana, Arial;padding:3px;margin:4px;font-weight:bold;\">".$q['forum_title']."</span></td>
<td><span style=\"height:15px;width:100%;font-weight:bold;font:12px/1.2 Tahoma, Verdana, Arial;padding:3px;margin:4px;font-weight:bold;\">".$q['forum_creator']."</span></td>
<td><span style=\"height:15px;width:100%;font-weight:bold;font:12px/1.2 Tahoma, Verdana, Arial;padding:3px;margin:4px;font-weight:bold;\">".$q['forum_replies']."</span></td>
<td><span style=\"height:15px;width:100%;font-weight:bold;font:12px/1.2 Tahoma, Verdana, Arial;padding:3px;margin:4px;font-weight:bold;\">".$q['forum_views']."</span></td>
</tr>";
}
}
}
}
Just fixed width problems....I HONESTLY have no idea what you're asking.You're not creating your own forum, are you?

Quote

require "Database/connect.php";
That probably won't work, depending on the server config.

Try this:

Code: [Select]require(dirname(__FILE__) . "/Database/connect.php");Yes, I made my own forums. And I just used math to do this one.
And guess what? I built it in a week.. SADLY, I didn't have sql injection protection, and it was injected

But, I do now Quote
Sadly, I didn't have sql injection protection, and it was injected
By who?

And, and if you're really SERIOUS about this site, I'd recommend removing the item on the front page "Free domain name", since you don't actually offer a free domain name.
1332.

Solve : White space problem?

Answer»

Well, with the background color it's actually a light blue space problem  .  I am doing my first web page for a friend of mine, and cannot figure out how to CLOSE the gap between the first two lines by about a third to a half.  I've searched NUMEROUS places on the web and have run out of luck.  Here's what I first had as the code:


      
          Acme Transport Company
          (905) 123-4567 or (987) 654-3210
      

And I wanted bigger type.  So, somewhere I read to use style SHEETS.  So I did that and that gap appeared.  I realize that there would be a bigger gap because of the bigger sized type, but I don't want the gap as big as it is.  Here's the style sheet coding:
 

      h1 {
         color: black
         font-family: georgia, arial;
         font-weight: BOLD;
         font-style:  italic;
         text-decoration: underline;
         text-align: center;
         font-size: 35pt;
         verticle-align: top;
          }
      h2 (
         color: black
         font-family: georgia, arial;
         font-weight: bold;
         font-size: 20pt;   
         verticle-align: top;
         }      
   
   
   
      
          Acme Transport Company
          (905) 123-4567 or (987) 654-3210
      
   

Any help is appreciated!  The space between the and the ?

Add a "margin-bottom: 0px;" to the h1 CSS.Yes, that's the space I was talking about, and your suggestion WORKED!  Thanks for the help!

Great! you dont have to use hex you know you can say light blue.  Just a tip  Quote from: squall_01 on August 18, 2009, 04:59:25 PM

you dont have to use hex you know you can say light blue.  Just a tip 

Yeah, I know.  I was looking at a color palate with the customer that had hex codes, and this was the color they picked.   you may find it too be better since you can select the light or darkness of a certain color better.
1333.

Solve : Password protecting files online?

Answer»

I have the FOLLOWING file called .htaccess and I am trying to PASSWORD
protect my file online, but it just brings up file without asking for
username or password is there anything wrong with what I have below
in my .htaccess file?

John

AuthUserFile /password/.htpasswd
AuthGroupFile /dev/null
AuthName "Password PROTECTED Area"
AuthType Basic

<limit GET POST>

</limit>

AuthUserFile /password/.htpasswdDid you create the .htpasswd file? May want to see below link for all the steps involved in doing this. Simply creating the .htpasswd file will not create a password.

http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/

Also your ISP may have an automated service for your that will allow you to easy enable this without having to manually do this on the server. May also want to look into this.

1334.

Solve : Trying to find my URL for one of my sites?

Answer»

Domain is the location where your user account is set up

Bellsouth is the domain for your bellsouth.net email address, that is where your account has been created.

Bellsouth is owned by AT&T, so AT&T has bellsouth webpage load up the AT&T stuff.

So nothing wrong with. the questions you posted


----

http://att.yahoo.com requires login information if you want your personalized home page. You must have either logged in or the person who wishes to see your customized page instead of the general noncustomized page must know the login information. There is no URL you can give to have the person see the site as is like www.google.com would do unless you have a personal domain name/webpage that goes to your att.yahoo.com page and does the login automatically...



First, please do not go to this http://att.my.yahoo.comaddress anymore, that was a mistake.
Still not sure if we understand everything. Here is one of the places we log in at http://my.att.net/p
ALSO, if you go here, this should also help explain what we are trying to explain http://www.dslreports.com/forum/r21002926-BellsouthATTSE-DNS-Servers
We had to do all those settings you see in all the BOXES on that page, and some of those do say dns, which we had to do those.


Also, if we don't have a domain or anything like that, why did we have to do settings for like FTP, http port 80, SMTP, pop, webmail, tcp/ip, dns, and so many other things we had to do?
Plus when we go to SITES where you look up domain information for example on that whois site, http://whois.net/ Things we click on like Your Ip Address, if we click on that it tells us what our IP address is.

It seems to be like other places like Geocities, Angelfire, MYSPACE, Facebook, where you can make sites at that you login to edit the stuff, upload the files to.
Whenever we go to other sites people have created we don't need their login information to view them. Here is Jtt's site that he created, http://www.myspace.com/jonathan_taylor_thomas



1335.

Solve : Continuous image marquee?

Answer»



Group: Members
Posts: 1
Joined: Today, 08:34 PM
Member No.: 11,016

Warn: (0%) -----

   
Hello All,

I am adding a continuous image scroller to my website and am having issues with Windows Explorer...the code is below, can anyone help?
Basically the last image scrolling to the left disappears before it reaches the END, #7 does not show up, and 1 and 6 overlap after the first go around.

Script:


<!--<br>// Jeff
// www.huntingground.freeserve.co.uk

// ********** User Defining Area **********





DATA=[
["images/medical_modalities_trans.png","Alt / Title text for image 1","pic01.jpg"],
["images/cbct_trans.png","Alt / Title text for image 2","pic02.jpg"],
["images/pharma_trans.png","Alt / Title text for image 3","pic03.jpg"],
["images/surgical_care_trans.png","Alt / Title text for image 4","pic04.jpg"],
["images/pacs_trans.png","Alt / Title text for image 5","pic05.jpg"],
["images/veterinary_trans.png","Alt / Title text for image 6","pic06.jpg"],
["images/medical_modalities_trans.png","Alt / Title text for image 1","pic01.jpg"],
["images/cbct_trans.png","Alt / Title text for image 2","pic02.jpg"],
["images/pharma_trans.png","Alt / Title text for image 3","pic03.jpg"],
["images/dental_implants_trans.png","Alt / Title text for image 7","pic07.jpg"] // no comma at end of last index
]

imgPlaces=5 // number of images visible
imgWidth=156 // width of the images
imgHeight=150 // height of the images
imgSpacer=4 // space between the images

dir=0 // 0 = left, 1 = right

newWindow=1 // 0 = Open a new window for links 0 = no 1 = yes

// ********** End User Defining Area **********

moz=document.getElementById&&!document.all

step=1
timer=""
speed=25
nextPic=0
initPos=new Array()
nowDivPos=new Array()

function initHIS3(){

for(var i=0;inewImg=document.createElement("IMG")
newImg.setAttribute("id","pic_"+i)
newImg.setAttribute("SRC","")
newImg.style.position="absolute"
newImg.style.width=imgWidth+"px"
newImg.style.height=imgHeight+"px"
newImg.style.border=0
newImg.alt=""
newImg.i=i
newImg.onclick=function(){his3Win(data[this.i][2])}
document.getElementById("display_area").appendChild(newImg)
}

containerEL=document.getElementById("his3container")
displayArea=document.getElementById("display_area")
pic0=document.getElementById("pic_0")

containerBorder=(document.compatMode=="CSS1Compat"?0:parseInt(containerEL.style.borderWidth)*2)
containerWidth=(imgPlaces*imgWidth)+((imgPlaces-1)*imgSpacer)
containerEL.style.width=containerWidth+(!moz?containerBorder:"")+"px"
containerEL.style.height=imgHeight+(!moz?containerBorder:"")+"px"

displayArea.style.width=containerWidth+"px"
displayArea.style.clip="rect(0,"+(containerWidth+"px")+","+(imgHeight+"px")+",0)"
displayArea.onmouseover=function(){stopHIS3()}
displayArea.onmouseout=function(){scrollHIS3()}

imgPos= -pic0.width

for(var i=0;icurrentImage=document.getElementById("pic_"+i)

if(dir==0){imgPos+=pic0.width+imgSpacer} // if left

initPos=imgPos
if(dir==0){currentImage.style.left=initPos+"px"} // if left

if(dir==1){ // if right
document.getElementById("pic_"+[(imgPlaces-i)]).style.left=initPos+"px"
imgPos+=pic0.width+imgSpacer
}

if(nextPic==data.length){nextPic=0}

currentImage.src=data[nextPic][0]
currentImage.alt=data[nextPic][1]
currentImage.i=nextPic
currentImage.onclick=function(){his3Win(data[this.i][2])}
nextPic++
}

scrollHIS3()
}

timer=""
function scrollHIS3(){
clearTimeout(timer)
for(var i=0;i<imgPlaces+1;i++){
currentImage=document.getElementById("pic_"+i)

nowDivPos=parseInt(currentImage.style.left)

if(dir==0){nowDivPos-=step}
if(dir==1){nowDivPos+=step}

if(dir==0&&nowDivPos<= -(pic0.width+imgSpacer) || dir==1&&nowDivPos>containerWidth){

if(dir==0){currentImage.style.left=containerWidth+imgSpacer+"px"}
if(dir==1){currentImage.style.left= -pic0.width-(imgSpacer*2)+"px"}

if(nextPic>data.length-1){nextPic=0}

currentImage.src=data[nextPic][0]
currentImage.alt=data[nextPic][1]
currentImage.i=nextPic
currentImage.onclick=function(){his3Win(data[this.i][2])}

nextPic++

}
else{
currentImage.style.left=nowDivPos+"px"
}

}
timer=setTimeout("scrollHIS3()",speed)

}

function stopHIS3(){
clearTimeout(timer)
}

function his3Win(loc){
if(loc==""){return}
if(newWindow==0){
location=loc
}
else{
//window.open(loc)
newin=window.open(loc,'win1','left=430,top=340,width=300,height=300') // use for specific size and positioned window
newin.focus()
}
}

// add onload="initHIS3()" to the opening BODY tag

// -->



Body:

<BODY onload="initHIS3()">


<center>
<div style="padding: 2px 0PX 0px 0px;">
<DIV id="his3container" style="position:relative; width:0px;height:0px; border:0px ;overflow:hidden">

<div style="background-image:url(images/gradient);
background-repeat:repeat;
width:858px;
height:150px;"

>

<div id="display_area" style="position:absolute; left:0; top:0; width:0px; height:0px; clip:rect(0,0,0,0)"></div>
</div>
</DIV>
</div>




THANKS in advance!
1336.

Solve : MySql inbox broken.. (Also simple)?

Answer»

I tried USING WHERE id='$x' but if a user deleted a number in between, it would SKIP the LAST one, then on, and on, again.

So, I tried using this. How would I use WHERE ROW = '$x' so it finds the next row in the database?

(Tried this):

Code: [Select]$q = mysql_query("SELECT * FROM INBOX WHERE $x");

1337.

Solve : Somethings wrong in my php function??

Answer»

The idea:

I call "GetNumberOfPages(Instance $Number of items)"
and it returns the number of items I sent it.

function GetNumOfPages($rows) {
$max = 5;
$pgs = $rows;
$ps = 1;
$a = 0;
echo "";
while($pgs > $max) {
$a++;
echo "";
if($a == $max) {
$ps++;
}
$pgs = $pgs -1;
}
return $ps;
}I have no idea what you're trying to do here.  What's all the stuff supposed to be doing?  Is that within > tags?The   is for COMMENTS in PHP. Nothing will be shown because everything in teh output is a comment. USE echo"$ps"; or echo"$a"; without the comment code. Quote

The <!-- comment here--->  is for comments in PHP.
No, they are HTML comments.

/*
This is a block
of omments
*/

# One line comment
// One line comment

Those are PHP comments. Quote from: kpac on AUGUST 01, 2009, 04:24:38 AM
No, they are HTML comments.

/*
This is a block
of omments
*/

# One line comment
// One line comment

Those are PHP comments.
But SINCE he's using echo those are comments and won't be shown.The "while" echoed in the middle of the HTML comment is what's throwing me...
1338.

Solve : Password Protecting HTML?

Answer»

I am trying to password protect a HTML file, but I do not want the whole file that I am trying to protect encripted or the .htaccess way of doing it.
The first page should contain the password box and upon entering correct
password it would take or allow access to next page, I can put the password box in my HTML, but I do not know what to look for to MAKE it check password and directing it to next page ?

JohnHere is the easy way.Just protect a whole folder.
Prepare an entry page where you EXPLAIN that beyond that the next page requires a password. Then put a link and indicate that they can either click to enter or RETURN to the main page.

You might call the new folder _private and put a index.htm file in it. Your link will be _private/index.htm and the visitor will se a dialog box before the page will load.

Go to your WEB site administrator panel and you should find a place where you can create a new folder in the public_html and make it password protected. The web server shod do the rest.

Think about it. Protecting an entire folder is much better plan. That sway the visitor can not see anything in the folder without the password. Once inside that folder, the password is not required unless he drops out of that folder.
Well I wanted to see if it could be done just on one page. I come up with this code...
 
   Password:
   
   
   
...it works fine as far as moving to the next page, but does not check for password and I wanted to use a non encripted password. I guess what I need to know is what codes are involved after you enter your password and hit enter, like most languages use the if command then if true goes on and if false returns?

JohnAre you the only person who will be accessing the file? If so, do you have a static IP?I am the only user, but I have IP address that changes all the time.
I did find Javascript version that might work and comes with all the detail at:

http://allwebco-templates.com/support/S_password_protect_simple.htm



JohnThe javascript comes very close to what you want. It has low security.if your GOING to "password protect" a web page with javascript, you may as well not protect it at all.

it's easy to do this via PHP; even using $_GET parameters on the URL is better then a javascript solution. Or $_POST would be more secure.The OP has already indicated that he does to want to use server side methods, This makes it near impossible to use plain vanilla HTML to do a client side page protection. And he said he does not want encryption

But the OP does not seem to get it. Maybe this is some kind of homework assignment. The kind where the teacher wants to frustrate the youngster who thinks he knows it all.

N o maybe the OP  has been insulted and he is not coming back. But if he is still with us, here is a recombination. Please read of this link and let yus know if you grasp the ideas.

Secure Sockets Layer protocol.

http://www.webopedia.com/TERM/S/SSL.html
Quote

The OP has already indicated that he does to want to use server side methods
No, he never did. He said the "htaccess" way of doing things. nothing about not using PHP or any other server-side method. Quote
No, he never did. He said the "htaccess" way of doing things. nothing about not using PHP or any other server-side method.

Sorry, I did not understand. Yes, PHP would be the way to go.

1339.

Solve : programming E-mail?

Answer»

Hello

What language do we use to make E-MAILs for subscribers ( like yahoo for example )

I think you need to elaborate on your question; you've provided very little info.  Exactly what are you trying to do?Hello soybean
Hi all

I don't want to do, I want to know: by any language yahoo did the service E-MAIL?

thank you Quote from: feras on July 25, 2009, 08:55:08 AM

... by any language yahoo did the service E-mail?
I have no idea what you mean. Quote
by any language yahoo did the service E-mail?
What does "service email" mean? Quote from: feras on July 24, 2009, 12:59:16 PM
Hello

What language do we use to make E-MAILs for subscribers ( like yahoo for example )



usually the best language to send e-mails to people in is one that they speak.Chortle.

I suspect Yahoo developed his platform using a variety of different languages.  In fact I'm sure of it, because they're certainly using javascript on some of the front end, and they will be using SOMETHING different on the back end.

I'd hazard a guess at a MIXTURE of C, one of the OO variants (C++?  J#?  VB (ha ha ha!)?) and some server side scripting language like Perl or PHP.  In addition there'll be a lot of heavy duty SQL going on somewhere.I think it could be done with PHP and mySQL. You just have to be VARY careful with security, especially making sessions and protecting against SQL injection. Quote from: TechGeek on July 31, 2009, 04:14:19 PM
I think it could be done with PHP and mySQL. You just have to be VARY careful with security, especially making sessions and protecting against SQL injection.

I don't think so... we're talking mailserver here, not web server. Quote from: BC_Programmer on July 31, 2009, 04:30:48 PM
I don't think so... we're talking mailserver here, not web server.

I think he WANTS to make his own mail service. Quote from: TechGeek on July 31, 2009, 05:31:41 PM
I think he wants to make his own mail service.

which would require a mail server. a web server could be set up to forward requests to the mail server and serve as a http intermediary to allow usage of the browser to view e-mail (much like hotmail and gmail and the like), but both will require a mail server.

a Mail server would require a program or service to run on the machine, explicitly to serve POP3 and SMTP requests. mySQL and PHP on the other hand are more or less designed to be used with a web server that serves HTTP requests. quite different animals with quite different goals. Quote
mySQL and PHP on the other hand are more or less designed to be used with a web server that serves HTTP requests.
Yes, I often wondered how emails were retrieved, but there are no PHP or MySQL functions to do it. So, some other programming language must be used. I doubt the emails are STORED in a database anyway. Encryted files more likely.

Anyway, this topic is old and doesn't look like getting up again... Quote from: kpac on August 01, 2009, 04:22:39 AM
there are no PHP or MySQL functions to do it.

Correction!Err, yeah.... I saw those. That's not what I was implying!
1340.

Solve : Another MySql error (simple)?

Answer»

Errm.

Code: [SELECT]UPDATE `inbox` SET `READ` = 'true' WHERE `id` = `26`
Error:

Code: [Select]SQL query:

UPDATE `inbox` SET `read` = 'true' WHERE `id` = `26`

MySQL said: 

#1054 - Unknown column '26' in 'where CLAUSE'
http://www.w3schools.com/php/php_mysql_update.asp

Table names and fields do not need apostrophies.

1341.

Solve : I would like to have a simi private informaion only web site?

Answer»

I would like to have a simi-private information only web site.

I have some documents I would like to upload, these documents are of a sensitive nature and I would like to pass out a password for PEOPLE to GAIN ACCESS. I primarily would like to see the response by certain demographics and then to expand it.

No bells no whistles plan TEXT, it needs to be secure as possible so it could not be copied and WATERMARKED if it  imagining software were used. I do what a real web site, not like http:// www. comcast.com/user/ditllty/documents/xgRe more like www.birdsinflight.com

How would I do something like this? I know nothing about web sites, design, cost, hosting or even how to replying to post,  I am totally lost in this area.
You are asking two different questions here aren't you?

Quote

No bells no whistles plan text, it needs to be secure as possible so it could not be copied and watermarked if it  imagining software were used. I do what a real web site, not like http:// www. comcast.com/user/ditllty/documents/xgRe more like www.birdsinflight.com
You mean if you right click > view image, you get spacer.gif? -> How can I copyright or otherwise protect my images online?


Quote
I primarily would like to see the response by certain demographics and then to expand it.
I'm not 100% sure what you mean here. Quote from: Circuit Breaker on January 31, 2010, 05:14:57 PM
No bells no whistles plan text,
So, the content will be plain text?  There's really no effective way to prevent someone from copying from a web page and pasting to a file on their hard drive.  Your options for protecting text content hinge on basic copyright law.  So, put a copyright notice at the bottom of your pages.I trust the material in question is protected by a filed copyright?
1342.

Solve : MySQL won't add to database?

Answer»

I have the select_db and connections and stuff done.. But this won't ADD anything..

Code: [SELECT]$q = mysql_query("INSERT INTO users (id, username, password, email, description, bucks)
VALUES ($id, $user, $pass, $email, '', 15) ");try this, just like this '15' and ;

$q = mysql_query("INSERT INTO users (id, username, password, email, description, bucks)
VALUES ($id, $user, $pass, $email, '', '15'); "); Quote

try this, just like this '15' and ;
DEPENDING on the data type of the SQL field. If it's an INT, then you'll want no QUOTES, if it's, for example TEXT, CHAR, VARCHAR, and so on, then you'll want quotes around it.

Quote from: Bannana97 on August 01, 2009, 01:53:40 PM
I have the select_db and connections and stuff done.. But this won't add anything..

Code: [Select]$q = mysql_query("INSERT INTO users (id, username, password, email, description, bucks)
VALUES ($id, $user, $pass, $email, '', 15) ");
This is one of those things that people get mixed up with. When inserting/updating database fields, you still have to use quotes around PHP variables for it to work.
1343.

Solve : MySql syntax error??

Answer»

Heres the code:

Code: [SELECT]$query = mysql_query("INSERT INTO inbox (to, from, id, sent, read, title, contents) VALUES ('$to', '$from', '$id', '$sent', 'false', '$sub', '$txt')");

Heres the error:

Code: [Select]SQL query:

INSERT INTO inbox(
TO ,
FROM , id, sent,
READ , title, contents )
VALUES (

'to', 'from', 'id', 'senfdt', 'false', 'Lol', 'Hi'
)

MySQL said: 

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
for the right syntax to use near 'to, from, id, sent, read, title, contents) VALUES ('to', 'from', 'id', 'senfdt',' at line 1
Have you made sure all the table fields exist?
Have you USED the right data-types for the fields?

For example:
Quote

INSERT INTO inbox (to, from, id, sent, read, title, contents) VALUES ('$to', '$from', '$id', '$sent', 'false', '$sub', '$txt')
The "read" field - is that a boolean? If so, remove the apostrophes around "false".Na, read is a text. Booleans don't work for me, for some reason. And yes, all the tables exist.

Also, id is a number value. I tried making it $id, but it didn't work.

And, contents is a LONGTEXT. Are the values too big for any of the fields? Ex: if the field for ID is INT(2), and the value $id is 111.Have you tried assigning the variables in the document just to see if it works? Then you would know if it's an error with the insert or getting the variables.Yes, I tried USING php on a page. It didn't do anything. And kpac, its INT(11), and the value is 2I think I realise what's wrong here.

Notice in the SQL error, "to", "from", and "read" are in uppercase. I'm PRESUMING they're reserved keywords?
Try changing the field NAMES to something else.
1344.

Solve : Web Pages!?

Answer»

Hi Every One

I Am Rookie In Web Design ! So Ignore My Foolishness

I SEE Other Web pages like google or other pages in html 

But Why Is ORKUT in .aspx

Is it releated to security?ASP.NET server-side programming. HTML cannot communicate with a web server. PHP or ASP can.Can u pls Explain In brief That .aspx file is outputting HTML. It has to because that's all the browser understands.

By communicating with the server, I mean, for example, connecting to a MySQL database. This forum uses PHP to connect to a database when, for example, I click the "Post" button after typing this message. It connects to a database, inserts the data and then REDIRECTS me to the Web Design forum and a list of topics.The website can have the .ilovepie extension and STILL output HTML.
It depends on how you setup the server.. Quote from: Treval on February 01, 2010, 08:25:24 PM

The website can have the .ilovepie extension and still output HTML.
It depends on how you setup the server..


mmmmm


Pie...


In either case it's not related to security. In this case, it's LIKELY a server-side ASP.NET script that generates the page, much like PHP or ASP or any number of server-side languages. of course if the server admin was weird he might decide that ASPX works just as well for delivering as pure HTML, as Treval pointed out. Of course that means that the admin cannot be trusted since he's crazy.  For security reasons one might TRY to fool an attacker into thinking the site is ASP (.NET) by adding .aspx to every page but in fact the server is using PHP or something else! Like, have .aspx map to .php, lol!Yes, just use htaccess.

Code: [Select]AddType application/x-httpd-php .foo
Then just change all of your file extensions to .foo.


If you don't want to change extensions:
Code: [Select]Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.*)\.foo$ $1.php [NC]
hello i am new here and i just want to tell you about nothingNo thanks.Webpage Extensions like .aspx is usually used by Web 2.0 services these days. Either .php (PHP) or .asp/.aspx (ASP). They are dynamic pages unlike .html pages.

When I signed up for a Website, I had to get a provider supporting these extensions to increase usability.sigh...

its not the EXTENSIONS that are supported. You could make ASP be a PHP file on a server that didn't support ASP if you wanted, that means that the EXTENSION for ASP would be "supported" but it wouldn't be supporting the use of actual ASP.

Extensions are simply used to determine how the server will deal with the file. if it's a pl file, it might be passed through a perl interpreter server-side that outputs an HTML page. If it's PHP, same story, but with a PHP interpreter, and the same with ASP (which isn't really a language of it's own but rather the ability to use a number of different languages with the same set of ASP objects for returning a response to the browser, which, will be HTML.)

The browser ALWAYS get's something it can understand (well, if everything works). This is always either HTML or XHTML. you cannot read a PHP file directly with a browser- you would just get program code.


1345.

Solve : Hw can I disp comma separatd txt data with analysed format in html with row wise?

Answer»

Hi
I NEED  some light on html scripting for my application.
I have a comma separated TEXT file: AN_7,4,4,1203,1,9933208684,,2501,,919533265552,,14,03082009_17:21:50

And I want to display the text data in analysed format in html with ROW wise.
Example :
AN_7               --node7
4                     --gsm
4                     --gsm
1203               --pc
1                     --type
9933208684   --num1
,                      --na
2501               --id
,                      --na
919533265552--num2
,                       --na
14                    --ok
03082009_17:21:50 --date PRINT as it is. like wise. 

If more than one comma is there that means the next data value is not available/blank

Pls help me out.

1346.

Solve : html help?

Answer»

If I use the CODE





My photo does show up on the web page and is  Centered.
But if I use the code




My photo stills shows up on the web page but goes to the LEFT side   and this is by default I GT this.

But why does this code not work





After all the code



   worked to center the photoBecause is not a HTML tag. Quote from: nymph4 on FEBRUARY 07, 2010, 10:43:33 AM

But why does this code not work

<RIGHT>
<img SRC="photo A2.jpg" width="550" alt="" border="0" align="">
</RIGHT>

After all the code

<center>
<img src="photo A2.jpg" width="550" alt="" border="0" align="">
</center>   worked to center the photo
The tag is not in the W3 standards. It's kinda lame but you can know what works at http://w3schools.com/tags/default.asp. Quote
It's kinda lame but you can know what works at http://w3schools.com/tags/default.asp.

Why is it kinda lame?It's pretty simple, baby.

solution

You have to use:

Code: [Select]<img src="abc.xyz" align="right">
Quote from: nymph4 on February 07, 2010, 10:43:33 AM
<img src="photo A2.jpg" width="550" alt="" border="0" align="">

My photo stills shows up on the web page but goes to the Left side   and this is by default I gt this.
I would think the absent value for the align attribute might have been a clue.
1347.

Solve : icon beside url address?

Answer»

hi,
Im starting a new thread because i dont even know what this called.
I use php-fusion and would like to change the icon to my own one.

www.29sd102.com

This site has a blue/black box with CH in the middle oif it, and this is what i would like to change.

thanks.

pat sd102See here: http://www.webdesigntuts.net/html-tutorials/add-a-favicon-to-your-website.htmlThanks,,
simple when you know how,,lol

Just to add, make sure to CLEAR your cache and delete your site of your fav's list to see new favicon.

again,, thanks, ,NICE one

pat 102  No problem.

Quote

Just to add, make sure to clear your cache and delete your site of your fav's list to see new favicon.
Thanks, got that added.
1348.

Solve : Indexing a Site?

Answer»

I've created a new site under a subdomain of a web site. Google Cant see to index it is it because its a subdomain? Also if I have to upgrade my site to get it indexed how do I get it out on the web. What sites would I USE to  advertise  my site. Any free ones I could use? I did try googling theses things with no luck. Any help I'd appreciate.google hasn't indexed it yet I think and also you probably have to submit your content to google. Quote

Google Cant see to index it is it because its a subdomain?
What? That makes no difference.

Quote
Also if I have to upgrade my site to get it indexed how do I get it out on the web.
I have no idea what you mean here.

Quote
What sites would I use to  advertise  my site. Any free ones I could use?
No.

Create a sitemap and submit it to Google.You never need to pay to have google index your site.

There's no "free" advertising because you have to do something for a network to get your site on there. You can have advertising where you don't need to pay, but you could MAKE lots of MONEY in the time you will put into earning that advertising time.
1349.

Solve : Javascript "Permission denied" with Arrays and match??

Answer»

It errors me, "Permission denied"

Code: [Select]var found = false;
var WII = new Array(30)
WII[0]='/';
WII[1]='-';
WII[2]='_';
WII[3]='(';
WII[4]=')';
WII[5]='*';
WII[6]='&AMP;';
WII[7]='^';
WII[8]='%';
WII[9]='$';
WII[10]='#';
WII[11]='';
WII[12]='!';
WII[13]='+';
WII[14]='=';
WII[15]='[';
WII[16]=']';
WII[17]='{';
WII[18]='}';
WII[19]='|';
WII[20]=':';
WII[21]=';';
WII[22]='"';
WII[23]="'";
WII[24]='>';
WII[25]='.';
WII[26]='<';
WII[27]=',';
WII[28]='/';
WII[29]='?';
 
for(var xx=0;xx<=30;xx++) {
if(document.write(obj.value.match(WII[xx]))) {
found = true;
}
}
Don't know if this will help,

but the for loop is executing one too many times.

try this

Code: [Select]for(xx=0; xx < 30; xx++) {
I'll try and help if that doesn't work.

1350.

Solve : Mouseover text?

Answer»

Hi, I need help FINDING a code that does this:
When i mouse over a text or image i want ANOTHER image to open next to the mouse button.

Something similar to this website http://www.wowhead.com/?item=44091#comments
when you mouse over "http://wotlk.wowhead.com/?item=5267"a window opens up.

Any help would be great, thank youI believe that is done USING Javascript Auto Tooltip. EXAMPLE