almostbob 866 Retired: passive income ROCKS

Give the targets different names, names do not just apply to frames, if a frameset does not exist the target opens in a window or tab with that name
Try to get rid of the tables, slow poor choice for layout tool css positioning is faster more compliant and looks the same in most browsers

<!-- later versions of (x)html can be case sensitive -->
<tr>
<td valign = 'top'> <a href='sendGift.php' target = 'sendgift'><font color = "#0000ff"  size = "3" face = "verdana"> <b>Send Gift </b></font></a><br></td>
<td valign = 'top'> <a href="sendMoney.php" target = 'sendmoney'><font color = "#0000ff"  size = "3" face = "verdana"> <b>Send Taka </b></font></a><br></td></tr>

The assorted inline font statements have long been discarded in favour of css styling, which requires much less code, and much less chance of errors

almostbob 866 Retired: passive income ROCKS

The US school system produced "Dubya"

jonsca commented: lol +0
jwenting commented: irrelevant, and of course only silly idiots still haven't gotten over their BDS +0
almostbob 866 Retired: passive income ROCKS

often get gremlins
<link rel="stylesheet" type="text/css" href="style.css" />
mYay fail when
<link rel="stylesheet" type="text/css" href="./style.css" />
works

almostbob 866 Retired: passive income ROCKS

the first url is the more correct form
the second traditionally represents a foldername, which may confuse the spider and lessen page counts
both would function properly as the rewrite is only specific to your site

mod_rewrite is fun

almostbob 866 Retired: passive income ROCKS

Google:: entered the dictionary as the verb for internet search , and is free to submit
Yahoo:: entered the dictionary as an uncultivated or boorish person; lout; philistine; yokel.

has anyone ever said, go and yahoo it, for $300

almostbob 866 Retired: passive income ROCKS

<a name="coats"></a>
?

almostbob 866 Retired: passive income ROCKS


An em is the height of the current font. If the current font is 18px, 1em is 18px.

if you are going to suggest that someone has made an error in their definition,you should get it right,, http://en.wikipedia.org/wiki/Em_(typography)

An em is a unit of measurement in the field of typography. This unit defines the proportion of the letter width and height with respect to the point size of the current font. Originally the unit was derived from the width of the capital "M" in the currently used typeface.[1] This unit is not defined in terms of any specific typeface, and thus is the same for all fonts at a given point size.[2] So, 1 em in a 16 point typeface is 16 points. Note that this term is not an acronym or initialism and is pronounced the same as the letter it refers to, the letter "M".

almostbob 866 Retired: passive income ROCKS

document.write("<input " + password + ">");

almostbob 866 Retired: passive income ROCKS

$_REQUEST is a combination of the $_GET and $_POST arrays
S_POST is the array of a form submission
$_GET is the array of this type of parameter

http://mysite.com/joinform.php?Email=mymail@gmail.com&Username=newuser&Password=12345678

for single use (php is simple)

echo $_GET['Email'];
echo $_GET['Username'];
echo $_GET['Password'];

for multiple use

$Email = $_GET['Email'];
$Username = $_GET['Username'];
$password = $_GET['Password'];
/* all kinds of code to do whatever with these variables */
var url = String(window.location);
var index = url.indexOf("?");
var data = url.substr(index+1);
var splitted = data.split("=");
var Email = splitted[0].substring(0,splitted[0].indexOf('&'));
var Username = splitted[1].substring(0,splitted[1].indexOf('&'));
var Password = splitted[2];

Javascript is difficult for me, confirm this code works,
but the premise is there to work on

It is not very secure to get a password, the password is visible in the addressbar
such is usually Post-ed

almostbob 866 Retired: passive income ROCKS

did you remember the bang in line 46,
if(selectArrayId[x] != excludeId)
without it the function would do the opposite

bang, ! <--- that thing

almostbob 866 Retired: passive income ROCKS

well it works for everybody else

almostbob 866 Retired: passive income ROCKS

thats useful code, which I have added to my samplelist, than kyou
but not intuitive naming, in 18months time when there is a rewrite function disable(element) may cause programmer errors, why not function disableallother(element) is there a length limit to variables in javascript that I missed or some such

almostbob 866 Retired: passive income ROCKS

ems are user defined, they are the width of the M in the users basefont
screen layout in % , font in em
the window is always 100% wide regardless of size

almostbob 866 Retired: passive income ROCKS

NO
show some effort, begin yourself, post your code and ask for critiques
it is not up to others to do your home work

Let me google that for you or

if($you = 'dont like it') echo 'KMAYOYO';

define:kmayoyo

almostbob 866 Retired: passive income ROCKS

as above, the $_GET array contains the parameters passed in the url
to get the value ?id=%s

echo $_GET['id']; 
/* or if the id is being used more often than once assign it as a variable */
$id = $get['id'];
echo $id;
/* do some math */ + $id; // bla bla bla

Hth

referring to $_request, $_post, $_get in the php online manuals may provide useful code samples

almostbob 866 Retired: passive income ROCKS

in javascript & other scripting languages there is a character sequence used to tell the interpreter that the following control character is not to be treated as a control character,, the escape code
in javascript and php it is the backslash \
in ansi screen code from dos days, it is $e[ (actually it isnt bad, it was really hard to type THAT by accident)
to get a backslash in javascript you have to put in two backslashes, the first one to say 'ignore the following treat it as text'

var x = "<div class='general'>"; // works
var x = "<div class="general">"; // fails
var x = "<div class=\"general\">"; // works ::escaped dquotes are output as text not as delimiting the variable

other examples /n is a newline character, if you wish to include "divided by n" in some algebraic sense, it would have to be \/n

almostbob 866 Retired: passive income ROCKS

looking at your code above notice the color changes where the variables are all messed up by incorrect quotes

<html>
<head>
<script type="text/javascript" src="coomang.js"></script>
<title>JS COOKIE MANAGER</title>
<link rel="stylesheet" type="text/css" href="coomang.css"> </link>
<script type="text/javascript" >
function loadcontent()
{
var x= "<div class="general">";

first error shows in lline 9, cant include dquotes inside dquotes unless they are escaped use var x = "<div class='general'>"; all the way thru the file, fix the quotes
to prevent this recurring every time, get a decent editor with code highlighting, which will show you your errors, in the same way, by color changes
notepad+ notepad2 spring to mind
its a simple error that everyone makes the first few times

<html>
<head>
<script type="text/javascript" src="coomang.js"></script>
<title>JS COOKIE MANAGER</title>
<link rel="stylesheet" type="text/css" href="coomang.css"> </link>
<script type="text/javascript" >
function loadcontent()
{
var x = "<div class='general'>";
almostbob 866 Retired: passive income ROCKS

the number <50posters, disagreeing with csgal's interpretation of how the site is run,

bossLady, the noobs have spoke, you must be wrong

Noobs, that was a facetious comment, csgal is bossLady, the Queen of DaniWeb, her board, her decisions, her config, so its probably not reasonable to disagree

If it were ya dog, y'd shoot it

almostbob 866 Retired: passive income ROCKS
body { bla bla bla }
.header { bla bla bla fixed }
.footer{ bla bla bla fixed }
a{ bla bla bla }
div{ bla bla bla }

@media print { body { blaa blaa blaa }
.header { blaa blaa blaa }
.footer { blaa blaa blaa } 
.menu { display:none; } // menu not neede3d on print page
a { blaa blaa blaa }
div { blaa blaa blaa }
}

using the media type print you can give different style .footer to the printed page from the screen page, add copyright notices to priinted pages, hide nav menus from printing, print addresses & all sorts of fun stuff, set appropriate print fonts and make your printed page as individual as the screen page
@media types for screen all handheld print text-to-speach allow flexible styling,
not setting a mediatype == @media all
so it s only neccessary to define in @media print those elements that are to be hidden or different to the screen page

Setting the z-index of the header = 0 will make the body flow around it,
setting the z-index < zero makes the text run over, setting the z-index > 0 makes the text run under, both these look the same when printing (bad, oveerstrike)

.header { top:0; bottom:auto; z-index:0; position:fixed; left:0; width:100%;}

has my header working on pages 1-5 of screen and print

almostbob 866 Retired: passive income ROCKS
almostbob 866 Retired: passive income ROCKS

Acknowleging that my JS is, PissPoor
the javascript gurus in the javascript forum could likely rattle of a script to do it in seconds.
I know there is a settimeout or setwaittime function in javascript
a script prepared to wait X seconds then change the source of the player element should be simple, then executed from the <body onload= > directive, the like a sllideshow with only 2 slides, prewritten slideshow scripts, may provide a good hint, or ask in Javascript forum

the flash script language has this built in, but my flash is worse than my JS

almostbob 866 Retired: passive income ROCKS

in javascrpt or in the swf player
once the page is sent to the browser php is DONE

almostbob 866 Retired: passive income ROCKS

Some editors add characters, or other code, to files, htese characters screw up the interpreter,
I think Pritaeas was suggesting an editor check,
at the same time a code highlighting editor, I use notepad+ and notepad2 but everyone has their favorite, makes it difficult to add your own screwups by showing any incomplete braces, unclosed tags, etc

almostbob 866 Retired: passive income ROCKS

It is unlikely that the error is in line 22.
function get_option() is likely declared in an include() file so the code is availab le to more than one file
all include()d files are considered part of the file being parsed, parsed line 22 could be line 3 of another file(example)
the difficulty in tracing included files for a complex cms, makes reinstall a much simpler option than it appears

wrap code samples between [code=language] code sample [/code] tags makes the code easier to read. eg, [code=php] [code=html] [code=javascript] the [code]

[/code] tags do not display, but the code sample between them is highlighted for syntax

almostbob 866 Retired: passive income ROCKS

the code you twit, pictures are useless

almostbob 866 Retired: passive income ROCKS

read a book, the site remains in php, the output to wap devices is a simplified html to the limited capacity of the wap device the wap book will tell you what your existing scripts need to echo produce "wapml"

almostbob 866 Retired: passive income ROCKS

everybody always wants to do it the hard way echo "<form action='change.php?modify_type=2' onsubmit='return confirm(\"Are you sure you want to delete the selected entries?\");' method='post'>"; keep it small

almostbob 866 Retired: passive income ROCKS

in the example there is no reference to background,
the background property does not do what you intend, probably supposed to, but,,,
background is static and does not play swf or animation or vid

you are, in essence, faking it
create an ordinary player element and give it style that makes the player sit behind other content and fixed PLAYERelement {z-index:-100; position:fixed; left:somethingX; top:somethingY;} where the element id='PLAYERelement' is whatever code it would require to embed the swf in the page

something along the lines of

<dtd>
<html>
<head>
<style type='text/css'>
PLAYERelement {z-index:-100; position:fixed; left:somethingX; top:somethingY;}
</style>
</head>
<body>
<div id='PLAYERelement'><!-- code to embed .swf --></div>
<div> bla bla bla rest of page
bla bla bla</div>
</body></html>

the rest of the bla bla bla should scroll over the embedded player, which has the appearrance of a background
couldnt be bothered looking up the swf player code, likely the player itself can be given the id and styled without requiring the enclosing <div>

almostbob 866 Retired: passive income ROCKS

yes, something nobody ever gets, until the second time, then its a 'headslap moment' 'how did I miss that' do not use the background property of the body, background does not do much
the z-index example above allows you to do it with a positioned div,p,player,any element

"simple items as background"

"complex items as css z-index layers not as background, because background at the moment cant play animations, or do much other than sit there"

give your swf player the css in the example should (fingers_X) work

almostbob 866 Retired: passive income ROCKS

set in css, for simple items as background,
for complex items as css z-index layers not as background, because background at the moment cant play animations, or do much other than sit there
but examine the z-index property, default z-index is 0
higher z-index sits above,
lower z-index sits below in the page
so if you style an element

element {z-index:-100; position:fixed; top:somethingX; bottom:somethingY;}

it will sit at position somethingX,somethingY behind other content, while the rest of the page scrolls,
"element" can be a player, image, div, pretty much anything

almostbob 866 Retired: passive income ROCKS

yes, as in the replies above, the title is just a tag, the tag can be written in php from a datatabase, from any of the parameters passed to the filename, from any php predefined variable, date, time
a search page, links to external sites, and use the title as part of attribution, that the content is somebody else's, the relevant sites use a similar arrangement linking our content
code_sample takes a parameter ext, external.php?ext=(urlencoded url),

<?php if(!$_GET['ext']){ header("Location: /index.php");
exit; }
$ext=$_GET['ext']; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><script type="text/javascript">
function sizer() {
var viewportheight;
 if (typeof window.innerWidth != 'undefined') { viewportheight = window.innerHeight }
else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0) { viewportheight = document.documentElement.clientHeight }
else { viewportheight = document.getElementsByTagName('body')[0].clientHeight }
document.getElementById('extern').style.height=viewportheight-26 + 'px';
}
document.onresize = sizer();
</script>
<!--[if IE]>
<script type='text/javascript'>
window.onresize=sizer;
</script>
<![endif]-->
<title>Linking external site <?php echo $ext; ?></title>
<link rel='stylesheet' href='/style.css.php' type="text/css" media='all'>
<script type="text/javascript" src="/script.js.php"></script>
</head><body onload='sizer();' style='margin:0;padding:0;height:100%;text-align:center;'>
<div style='height:23px;width:100%;text-align:center;'>External site &nbsp;<a href='<?php if (isset($_SERVER['HTTP_REFERER'])) {echo $_SERVER['HTTP_REFERER']; }
else {echo "/reload.php";} ?>'>&nbsp;<span class='smalltext'>Return to</span> referring&nbsp;page&nbsp;</a></div>
<iframe name='extern' id='extern' frameborder='0' width='100%' height='200px' src='<?php echo $ext; ?>'>loading frame</iframe></body></html><?php } ?>

I know iframes are tacky and unneccessary, but it works and havent bothered to recode this script for years

almostbob 866 Retired: passive income ROCKS

You had this to display the image.

background: url("h1.png") no-repeat scroll left top transparent;

You ad this to link the image:

background-image:url(http://yourlink.com);

Ps. I see your site on your last post linked is off.

Please ignore this BS
background is a shorthand entry for all the separate css properties applicable to background, and does NOT link the image
body {background:#ffffff url('img_tree.png') no-repeat right top;}

almostbob 866 Retired: passive income ROCKS

to stay put

#footer { height: 150px;margin-top: 0px;margin-bottom: 0;text-align: right;clear: both;	background-repeat:no-repeat;background-image: url('bg_body_2.jpg');background-repeat: no-repeat;	}

could include instructions to keep it fixed and at the bottom of the page

#footer { height:150px;margin-top:0;margin-bottom:0;text-align:right;clear: both;background-repeat:no-repeat;background-image:url('bg_body_2.jpg');bottom:0;position:fixed;}

zero px is not valid in css, you missed one at 'margin-top' in your cleanup.

Production code is not indented or formatted, whitespace is useful for those developers who have not discovered code highlighting editors yet, but useless in production code it just adds extra download time, often 40-50% of html css js files is whitespace, that the browser doesnt need

almostbob 866 Retired: passive income ROCKS

perhaps change the way the selects are handled,
drop down menus don't really need to be handled as a form, the drop down menus above these posts(daniweb) are css-styled <ul>
given the value() arrays, url1 url2 etc the pages all you requre is to populate <ul><li> from the database, and let the css handle the appearance
anyhow the google search would be "css dropdown menu"
how the database values are passed as urls depends on how they are stored
ignoring code errors, code to select and loop through database values is completely ignored

<ul>
<?php echo "<li><a href='http:/mysite.com/$database_url_value1'>$database_text_value1</a></li>"; ?>
//loop
</ul>

just a posssiblity

almostbob 866 Retired: passive income ROCKS

if you must, http://javascript.internet.com there are some mouse trail scripts.

almostbob 866 Retired: passive income ROCKS

^ cracks the whip, slave-driven by boss
< retired: kicking back on another holiday
V wants to retire


By satphone from Outback NSW, 32degreesC, bloody marvelous

almostbob 866 Retired: passive income ROCKS

its suprising to find out that most of you web designers/developers don't know how to get the codes. So this is how you can get any html, php, ect.... code from any website like facebook, deviantart..ect. all you have to do is on Internet Explorer you hit on upper tab bar where it says View down to where it says source when you ........

your ignorance is amazing,
view source only shows the output html, and only where the site is not secured, and does not display the asp jsp php that makes the site run, and is not output to browser. this thread is entirely about serverside code

EvolutionFallen commented: Thanks for dispelling inaccurate advice given by someone who doesn't know what they're about +2
almostbob 866 Retired: passive income ROCKS

G'day almostbob, you're in saying that a server side solution is the best approach, but not always is possible or it becomes tricky to make it work perfectly when you have reverse proxy as Squid or CDN as Akamai in front the web server.

Regarding your concerns, you're missing few things: first, putting the JS at the top of the page as first script, the redirection is unnoticeable and you don't need to put the script in the mobile pages; second, the current status of mobile devices is not that bad, and JavaScript support is granted in almost every devices nowadays (iPhone 3&4, Android phones, Blackberry are the most common mobile devices accessing to the net).

Also the solution has been adopted in small and large sites and it seems working well.

glad to hear,
wasn't aware proxy may cause problems, our experience of Akamai is v.positive
congrats on linear alignment of the ducks, and increasing my knowlege base

almostbob 866 Retired: passive income ROCKS

Sebarmeli, gday mate, try to rewrite the javascript to a serverside language, redirect is kind of pointless AFTER the page is loaded, javascript runs in the browser, and many handheld devices do not permit javascript, rendering a javascript redirect worse than useless, by making the downloaded page even larger

by satphone for FNQ really lovin the holiday

almostbob 866 Retired: passive income ROCKS

no issues, css '%' requires numeric values, **.** is valid numeric so will be properly interpreted, (even by IE) to the limits of the browsers implementation (IE very limited)

by satphone from outback queensland, month 2/8 holiday, fanbloodytastic

almostbob 866 Retired: passive income ROCKS

some people want their site to not be useable, no better way to make an unuseable site than to do it in flash


by satphone from wonderful outback queensland

almostbob 866 Retired: passive income ROCKS

and dont forget text extension, screen reader aids for disabled, without which your flah site will be about invisible to search engines

almostbob 866 Retired: passive income ROCKS

@ almostbob, please explain this line
"no light text on dark background" ;) I'm a newbie, so I'm gathering any knowledge I can find. Thanks.

look a this page, dark text light background, easy to read, go to the idiot ArtyCrafty moron sites that use black background and light text, illegible. the eye works best dark on light. You want user retention, compare Google to Yahoo Livesearch/MSNsearch/Bing. all have similary results, google eats them because the interface is clean

by SatPhone from OutBack Queensland,2 of 8 month Holiday is fantastic

almostbob 866 Retired: passive income ROCKS

Downloadable fonts are implemented in html5, which means NO you cant use them, no browser supports all of html5 yet, IE 5678 supports .eot format d/l fonts, badly.

almostbob 866 Retired: passive income ROCKS
<script type='text/javascript'>
<!--//
if (window != top) { top.location.replace(self.location.href); }
//-->
</script>

put a framebreaker in the head of the page you wish to ensure is n ot in the frameset. the above codescrap is one,

almostbob 866 Retired: passive income ROCKS

Browser support for html5 is limited and the implementation of those features that are supported in those browsers that partially support html5 are generally buggy, opera appears to be acing the implemntation race,

http://html5test.com/ test your browser

almostbob 866 Retired: passive income ROCKS

Q: What do you call a deer with no eyes?
A: No idea.(No-eye deer)

what do you call a deer with no eyes and no legs?
Still no idea...

what do you call a deer with no eyes and no legs and no genitalia?
Still no f*****g idea

almostbob 866 Retired: passive income ROCKS

hope its always something simple
Dos Vdanye

almostbob 866 Retired: passive income ROCKS

if you waqnt it to work as expected you have to declare it as expected

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
diafol commented: good spot AB - whether or not it solves his prob +6
Night N Gail commented: Thank you very much for the help. +0
almostbob 866 Retired: passive income ROCKS

firefix opera safari have 'thumbdrive' versions, no-install versions that allow yout to have all the major engines installed

via best western hotels, stuck waiting for hurricane to leave