7kb for 1 4state button, thats much less than thought,
but more than a css button, thats 125 bytes,
flash buttons look so good though
daydream, doodle, think,
can flash buttons be reused, same 'swf(?)' flash file different parameters
7kb for 1 4state button, thats much less than thought,
but more than a css button, thats 125 bytes,
flash buttons look so good though
daydream, doodle, think,
can flash buttons be reused, same 'swf(?)' flash file different parameters
I agree, maintaince is a b**expletive deleted**
the buttons on this page, like
'flag to quote'
drop down oncllick menus
function on different states are all css,
the possibilities approach flash, and it is much simpler to maintain
(here comes the BUT)
But it has another learning curve
a query, now that the q is solved, I couldnt asnwer it so didnt waste anyones time
How big is the flash for this menu, in KB, ?
google for css menu
navigation is another of many things flash is not good at
similar button effects can be made with css, much smaller, no overhead, no third party stuff that may not be installed on the users pc
there are even sites where you can create your menu and they will create the css and html includes for you
(Gremlins)
Google earth is composed of aerial photos which are taken during specific seasons over the course of decades and then compiled together to create the larger images. Live feed would mean either a plane or dedicated satellite viewing the exact point, it's impossible with anything near current technology to do this everywhere at once and nothing short of getting your own plane or satellite will give you this feature.
Dont rain on his parade bloke,
think of the money we could make selling the op ANYTHING,
and he would likely buy it twice when the first time didnt work
site?
code?
else any answer will be a guess
for real tabular data a table is still accepted practice
page refresh F5 is supposed reload all the cached files,
<html>
<head>
<style type='text/css'>
.cont { border:black 1px solid; width:100%;}
/*css two column table*/
.l2 { width:50%; float:left; padding:0 1%; }
.r2 { width:50%; float:right; padding:0 1%; border-left:black 1px solid; }
/*css 3 column table*/
.l3 { width:33%; float:left; padding:0 1%; border-right:black 1px solid;}
.r3 { width:33%; float:right; padding:0 1%; border-left:black 1px solid; }
.c3 { width:30%; padding:0 1%;}
</style>
</head>
<body>
<p> two column table</p>
<div class='cont'>
<p class='l2'>this text left</p>
<p class='r2'>this text right</p>
</div>
<div class='cont'>
<p class='l2'>this text left</p>
<p class='r2'>this text right</p>
</div>
<p> three column table</p>
<div class='cont'>
<p class='l3'>this text left</p>
<p class='r3'>this text right</p>
<p class='c3'>this text middle</p>
</div>
<div class='cont'>
<p class='l3'>this text left</p>
<p class='r3'>this text right</p>
<p class='c3'>this text middle</p>
</div>
4 5 6 column tables continue in a similar fashion, as do combinations of rows like colspan rowspan
the technologies that allow fantastic effects have a very large trade off in load time, no-one sees the effects becuase they click away
Javascript as noted by Caffeine above is an exception, what you can do is limited only by what you try to do, and its relatively small being native to most browsers
if you google for 'download javascript' or such you can find some good ideas
one such repository is at http://javascript.internet.com
briny
brail
bath
gracile
Pork chops mushrooms & mashed potato
yes, you can copy the img style into your stylesheet
BUT
styles are applied in order
external style sheets
header styles
single element styles <a style='somthing'>
with the last taking priority
If you put that style in your style sheet it will apply to all images which might **expletive deleted** when you want to display a full size image of something
in the <head> of the page it applies to only the images on that page
in a single element it applies only to that element
are you getting the text wrapping under the image, that is the most likely occurrence, It was a thought exercise not a properly planned layout, my very bad,
so a better layout (perhaps)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- @(#) $Id$ -->
<head>
<title>David Doria - Technical Reports</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="Keywords" content="your,keywords,here" />
<meta name="Description" content="." />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<link rel="stylesheet" type="text/css" href="style.css" />
<style type='text/css'>
div { width:100%; }
img { margin:10px; float:right; width:230px;height:190px}
.lt { width:25%; float:left; z-index:-100;}
.rt { width:70%; float:right;}
</style>
</head>
<body>
<div><p class='lt'><img src='blah1' alt='' /></p><p class='rt'> any text you want </p></div>
<div><p class='lt'><img src='blah2' alt='' /></p><p class='rt'> any more text you want </p></div>
<div><p class='lt'><img src='blah3' alt='' /></p><p class='rt'> any other text you want </p></div>
<div><p class='lt'><img src='blah4' alt='' /></p><p class='rt'> still any text you want …
I dunno, havent thought about that
My version downloads a zip file of the new script using a force download script that the user then unzips over the top of their existing folders
combining the two scripts given already
$version=file_get_contents('current_version.txt');
$d=date("D");
if($d === "Tue") { echo 'checking for updates..<br/>'; }
$current_version=file_get_contents('http://www.leegeorg07.co.cc/test/current_version.txt');
if($current_version > $version) { echo 'There is a newer version of this script available, please update <br/>';
$dir="dir"; // Directory where files are stored
$i=1;
if ($dir_list = opendir($dir)) { while(($filename = readdir ($dir_list)) !== false) { echo '<a href="'.$filename.'">'.$filename.'</a><br>';
$i++; }
closedir($dir_list);
}
}
elseif($current_version < $version) { echo 'You are running a beta script, are you sure? Restore the latest stable version at<br/>'; }
else echo 'You are running the current version';
}
untested implementation
( does this work ? )
force download script (filesave.php)
<?php if(!$file) return false;
header("Content-disposition: attachment; filename=$file");
if(!$filetype){ header('Content-type: application/pdf;'); }
else { header("Content-type: $filetype;" ); }
readfile("$file");
?>
accessed by <a href='filesave.php?file=filename&filetype=this%2Fthat'>download filename</a>
look at your table code with the text removed
<table width="100%" align="center" border="0" cellpadding="10" cellspacing="10">
<tr>
<td align="right"><img src="Images/PointSetProcessing.jpg" width="230" height="190">
<td width="75%" align="left">
<tr>
<td align="right"><img src="Images/LidarScanner.jpg" width="230" height="190">
<td align="left">
<tr>
<td align="right"><img src="Images/PTXReader.jpg" width="230" height="190">
<td align="left">
<td align="right"><img src="Images/RegionGrowing.jpg" width="230" height="190">
<td align="left">
<tr>
<td align="right"><img src="Images/NoImage.jpg" width="230" height="190">
<td align="left">
</table>
different number of td in different rows
your code will fail in many browsers(may not display), not valid xhtml, if your target is limited to a few people on a specific browser, not an issue but the code should be valid (x)html if you want people in general; to see it eg: tags must close <tr><td></td></tr>
singleton tags must self close <img src='' alt='' />
another approach, tables are SO 80s :P
<!-- doctype et al -->
<head>
<style type='text/css'>
img {margin:10px; float:left; width:230px;height:190px}
</style></head>
<body>
<div><img src='blah1' /> any text you want </div>
<div><img src='blah2' /> any more text you want </div>
<div><img src='blah3' /> any other text you want </div>
<div><img src='blah4' /> still any text you want </div></body></html>
h3 is a block element, </h3> ends the block with whatever margins and padding are set for the h3 and the adjacent element
</h3><br> is 2 Breaks, thats what you got
From a prior thread
<a href='download.php?file=thisfile.pdf'>download Thisfile.pdf</a>
mysql
<?php /*download.php*/
If (!$_POST['file']='') {
/* validate $_POST any amount of form validation this is just an exercise
or die('invalid information'); */
$con=mysql_connect("server","user","password");
if (!$con) { die('Could not connect: '.mysql_error()); }
mysql_select_db("my_db", $con);
mysql_query("INSERT INTO downloads (FirstName, LastName, Company, email, telephone, file) VALUES ('$_POST['Firstname']', '$_POST['Lastname']', '$_POST['Company']', '$_POST['email']', '$_POST[telephone]', '$_POST['file']')");
$path=''; //full path outside the root to downloadable files
header("Content-disposition: attachment; filename=$_POST['file']");
header('Content-type: application/pdf;');
readfile("$path$_POST['file']"); }
else {echo '<form action="'.$_SERVER['php_self'].'" method="post">';
.'<input name="file" type="hidden" value="'.$file.'">';
.'Firstname ?<input name="Firstname" type="text"><br>';
.'lastname ?<input name="Lastname" type="text"><br>';
.'Company ?<input name="Company" type="text"><br>';
.'email ?<input name="email" type="text"><br>';
.'telephone ?<input name="telephone" type="text"><br>';
.'<input name="go" type="submit" Value="Download file"></form>'; }
?>
csv text file
<?php <?php /*download.php*/
If (!$_POST['file']='') {
/* validate $_POST any amount of form validation this is just an exercise
or die('invalid information'); */
$file = "./logfiles/logfile.csv";// define the text file, named as .csv excell can open it.
$fp = fopen($file, "a+");//open the text file for writing.
fputs ($fp, "$_POST['Firstname'],$_POST['Lastname'],$_POST['Company'],$_POST['email'],$_POST[telephone],$_POST['file']\n");
fclose($fp);
$path=''; //full path outside the root to downloadable files
header("Content-disposition: attachment; filename=$_POST['file']");
header('Content-type: application/pdf;');
readfile("$path$_POST['file']"); }
else {echo '<form action="'.$_SERVER['php_self'].'" method="post">';
.'<input name="file" type="hidden" value="'.$file.'">';
.'Firstname ?<input name="Firstname" type="text"><br>';
.'lastname ?<input name="Lastname" type="text"><br>';
.'Company ?<input name="Company" type="text"><br>';
.'email ?<input name="email" type="text"><br>';
.'telephone ?<input name="telephone" type="text"><br>';
.'<input name="go" type="submit" Value="Download file"></form>'; }
?>
It wouldnt take much to add something from the php mail function to alter either of these to send mail directly
these scripts are aimed at .pdf, …
IF it is .asp, then it is on a server, not email.
therefore the email links to a server page for validation (as described in prior posts in this thread)
Have the client show you the example they 'saw' of an email script
The client is asking for "something" , but what they intend is not what they say. One of the posters here has a great signature
"50% of finding the solution is describing the problem"What you ask (1) trying to develop what the client describes (2) of what somebody else is doing (3)
adds three levels where error can occur
Its a cave man describing a space shuttle,
THREAD HIJACK ALERT :P
--
Thanks Digital-Ether
this is better code, idea I had not seen b4
my site is from database, results on the fly compression is normal, ecexcluded those from being regenerated every time,
now there is a parallel foldertree of compressed static files, site monitor show 83% of accesses from the gzipped folders, processor use is down 20% over yesterday.
the files that never alter are the files used most often
--
end Hijack
BS
not widely compatible -- with what --
the user browser sees nothing of what occurs on the server, only the output
by any method
the browser sends accept encoding ..
the server sends appropriate compression
whether .htaccess php.ini or embedded
the result to the user is identical
many servers do not permit php.ini to be changed
many servers do not permit some apache modules to be accessed through .htaccess
whatever works, is good, use whichever your server is set up for
Tutorials are not rigidly correct, they were correct for the person who wrote the tut, but only serve as a starting point for everyone else
(without a starting point its much harder)
(if the tutorial were correct for your server setup, this thread would not exist!)
Which method are you using
part of included header
<head><link rel="meta" href="/labels.rdf" type="application/rdf+xml" title="ICRA labels">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<link rel="stylesheet" type="text/css" media="screen" href="/style.css.php">
<link rel="stylesheet" type="text/css" media="print" href="/pstyle.css.php">
<link rel="stylesheet" type="text/css" media="handheld" href="/stylehand.css.php">
<script type='text/javascript'>
<!--//
if (window != top) {top.location.replace(self.location.href);}
//-->
</script>
<script type="text/javascript" src="/script.js.php"></script>
part of stylesheet and javascripts
style.css.php
<?php header ('content-type:text/css');
ob_start("ob_gzhandler"); ?>/*<style>*/
@media all { .dontall {display:none; } }
@media print { .dontprint { display:none; }
@media screen { .dontshow { display:none; } .doshow { display:inline; } }
p { padding:1px; font-size:100%; line-height:135%; list-style-type:square; }
p:first-line { font-weight:bold; }
p:first-letter { font-size:200%; float:left; }
<?php ob_flush(); ?>
script.js.php
<?php header ('content-type: text/javascript');
ob_start("ob_gzhandler"); ?>
function newuntill(date) {
var newimg = "http://pics.mysite.com/new.gif";
var expdate = new Date(date);
var curdate = new Date();
if (expdate.getTime() > curdate.getTime()) { document.write('<img src=' + newimg + '>'); }}
(document.getElementById) ? dom = true : dom = false;
function hideit(id) {
if (dom) {document.getElementById(id).style.visibility='hidden';}
if (document.layers) {document.layers[id].visibility='hide';} }
function showit(id) {
if (dom) {document.getElementById(id).style.visibility='visible';}
if (document.layers) {document.layers[id].visibility='show';} }
<?php ob_flush(); ?>
quiet (quite, quit quitter)
Quire
brut ( & of course brute )
salmonella
This is the ideal thing to do with AJAX,
can't ask me how, I dunno
in the adjacent AJAX DHTML Javascript forum there are ajax gurus for whom this is a no brainer, ask the same Q there
No
PHP is serverside, only the output of the php is sent to the browser
javascript is clientside,
the two meet in AJAX
whcih has a bit of a leaning curve...
What were you trying to accomplish
instead of "some php"
a.rollover > img:hover { height:240px; width:240px; margin-left:100px; }
post those lines of code, and those immediately before and after,
the validator often finds an error on line 8 if there is something missing on line 7
or there is an ampersand or other entity that needs to be escaped
or there is a character string, in a hash or other, that equals an encoded entity, minus the trailing semicolon
+ it depends on what schema you are validating, html xhtrml
example only not suggesting that there is an error on line 7 of your code
I do settimeout, sleep deprived and stupid, work during the night painting the house in the day, went to court
that line wasnt supposed to be included till I got the fuzz out of my head, a sad case, even now I should have a nap
then please inform the client
the repercussions of script content in the email will be hugely negative
it may take a little convincing,itmay take a lot of convincing
plan for the worst hope for the best,
but they will never get script email past the settings on the users' end
logicScripting is always blocked in email
the usual method is...end logic
Of course you can use javascript in the email
It won't work but
don't let total failure put you off
be different
alert "danger" messages in mail readers when the user opens automatically generated mail from your domain will get you heaps of extra traffic
wont get you black flagged
don't look like malware
what a **expletive deleted** head
show the sql to populate the result array, just hunting for ideas
<head><script type="text/javascript"><!--
(document.getElementById) ? dom = true : dom = false;
function hideIt(thiselement) {
if (dom) {document.getElementById(thiselement).style.visibility='hidden';}
if (document.layers) {document.layers[thiselement].visibility='hide';} }
function showIt(thiselement) {
if (dom) {document.getElementById(thiselement).style.visibility='visible';}
if (document.layers) {document.layers[thiselement].visibility='show';} }
--></script></head>
<body onload='showIt("hideable");'>
<span id='hideable' style="position:fixed; top:20px; left:10px; width:45%; visibility:hidden; padding:10px; margin:10px; background:#ececec; border: 1px solid; text-align:center;"><br>Javascript is like flexible dude<br><br><button id="frrm" onClick="hideIt('hideable');">Close</button></span></body>
:)
setWaittime(function,delaymicroseconds);
email header Reply-To:
To --obviously
From --you, you get bounces
set Reply-To: as sales, they will get genuine replies
Yes But
for the most appropriate cms in the orignal list,
RTFM, the process for each is different many allow codeview
csv is a good flat file system for porting any kind of data between incompatible system
to avoid popups use layers
make them visible or not
<script type="text/javascript"><!--
(document.getElementById) ? dom = true : dom = false;
function hideIt(thiselement) {
if (dom) {document.getElementById(thiselement).style.visibility='hidden';}
if (document.layers) {document.layers[thiselement].visibility='hide';} }
function showIt(thiselement) {
if (dom) {document.getElementById(thiselement).style.visibility='visible';}
if (document.layers) {document.layers[thiselement].visibility='show';} }
--></script>
<a id="me" href='#' onClick="showIt('hideable');">Show </a><span id='hideable' style="position:fixed; top:20px; left:10px; width:45%; visibility:hidden; padding:10px; margin:10px; background:#ececec; border: 1px solid;">put ADVERTISING here<br><button id="frrm" onClick="hideIt('hideable');">Close</button></span>
nobody allows scripts to function in email,
malware
send an email link to the form online,
In case you are really newyou get error line 46,
the file has 45 lines in it,
and the visible error was on line 28 line count as the file executes considers includes as part of the file
there were 18 processed lines in the included filestook half a year before anyone told me, its hard to debug when the errors seem weirda lot of the code samples you get from searches arent perfect, but they make a great jumping off point
Yes ofcourse that is much better. My solution is not the perfacet one. Their are many security related risks in that also. I just tried to provide a quick solution to that.
No bloke, apologies, i meant your method is tidy and browser independent,
css tweaks of standard items dont work in all browsers
the php_self code floats in my head all the time, its a convenient way to self reference a file, you already defined where to use it
If you want to do it that way(a tidy, browser independent, way to do it ) $url = $_SERVER['PHP_SELF'];
dunno, but style the input.submit
input.submit {background:none;border:0;color:#ff0000; }
<input type='submit' style="background:none;border:0;color:#ff0000;" value='something'>
(untested)
assumption:: to make a less than fullscreen image stretch to fullscreen, instead of tile, ( repeat-x repeat-y )
set the z-index lower than zero
the default z-index is zero,
the fullscreen image overwrites everything else at zero
#background { width:100%; height:100%; position:absolute; overflow:hidden; left:0; top:0; z-index:-1000; }
giving the background a hugely negative z-index means there is space for other elements to be above the background but behind the text.
It may (may = untested) be easier in the html to type
<img id="background" src="images/bg.jpg" alt="" />
Weirdness:: 0px = 0em = 0pt = 0% = 0cm = 0inch = 0: zero is the only dimension that needs no unit, you can write 0
bummer,
that makes more sense than my thought
for an image it should be alt='this is a test'
just to make the validators happy
try
<span style="overflow:hidden; background:url('10000000.png'); text-align:center; width:80%; height:60px;">test</span>
image placement is easy with css
css can be an external file that all the files on a site reference, great way to set the style for the entire site, then should you wish, you only need to make a single change to change the whole web page.
styles can go in the head, and they refer to every item on 1 page
styles can be added to an html element then the style referes only to that element.
to position a single image at the bottom of the page, to stay put, even IF the page gets larger than 1 screen the image remains and the page moves around it
<img src='whatever.jpg' style='background:transparent; top:auto; left:auto; bottom:0; right:0; position:fixed;' alt='whatever'>
top and left adjust to image size, bottom right set at zero from page border
css is very powerful, used right it makes layout piece of cake
there is a formum adjacent to this one in the web design forum css forum
containing css gurus to help debug
the W3C has a good basic tutorial http://www.w3schools.com/css/ to learn
what you can do,
when you should do,
and all that
good luck
zero that thought then, blackberry must be updated to 4.6 or higher
google button code
<input name=btnG type=submit value="Google Search" class=lsb>
<input name=btnI type=submit value="I'm Feeling Lucky" class=lsb>
has different 'Name' attribute, perhaps that is the sticking point for your code. In my mind a series of buttons with the same name are radio buttons which do not show up in the list of supported types on a blackberry
try action action1 action2 for name attributes ( ?? )
hth
neither do I,
I was hoping for a quick fix, missing quote or something, but the code looks right, except for closing semicolons in the javascript (should be but doesnt generally matter)
so perhaps the blackberry
support for html buttons is limited in software versions below 4.6 http://docs.blackberry.com/en/developers/deliverables/6176/HTML_ref_button_561520_11.jsp