almostbob 866 Retired: passive income ROCKS

pixels for font sizes ?? welcome to the 80s
each generation of monitor, pixels get smaller,
17inch monitors were 800 600px, 17inch monitors are 1900 1420
12px fonts are 3x smaller, approaching too small to be readable.
W3C reccommendations are, and have been for years, ems % for layout, px for images/animations/video.
scalar dimensions auto-adjust to ;;

  • screen resolution
  • user preference
  • disability
  • window size
  • device ability

and are generally considered a good idea

element { font: 1.2em/1.4em sans-serif; }

is acceptible shorthand for font-size: line-height: font-family:, understood by Opera9+ firefox2+ ie8+
does not work if required dimensions are omitted
font size / line-height is unpredictable if the line-height is less than the font-size, quirks modes are all crazy

almostbob 866 Retired: passive income ROCKS

set the z-index of the footer div to a higher value and it will slide over the top of other content on resize, and the other content will slide under it on navgation, something like

<style type='text/css'>
.footer { bottom:0; top:auto; width:100%; z-index:10; background:grey; position:fixed; }
ul { margin: 0; padding: .2em 1em; list-style-type: none; text-align:center; }
li { padding:.2em 1em; display:inline;}
li:hover {height:100px; background:blue;}/* & other effects already used for your expanding layers */
</style></head>
<body>
<div class='footer'>
<ul>
<li>Big</li>
<li>fat</li>
<li>hairy</li>
<li>deal</li>
</ul>
</div>
<div>content<br /> content<br />
content<br /> content<br />
content<br /> content<br />
content<br /> content<br />
content<br /> content<br />
content<br /> content<br />
content<br /> content<br />
content<br /> content<br />
content<br /> content<br />
content<br /> content<br />
content<br /> content<br />
content<br /> content<br />
content<br /> content<br />
content<br /> content<br />
content<br /> content<br />
content<br /> content<br />
content<br /> content<br />
</div></body></html>

extraneous headers left out

almostbob 866 Retired: passive income ROCKS

likely not a perfect solution,
ruminate while we illuminate, the possibilities

styles belong in the stylesheet so

<ul>
<li id='menu1')>Menu1</ul>
<li id='menu2')>Menu2</ul>
<li id='menu3')>Menu3</ul>
</ul>

which Could be css-ed

li#menu1 { height:/*height of image*/; width:/* width of image*/;background-image:url('menu1.png');color:black }
li#menu2 { height:/*height of image*/; width:/* width of image*/;background-image:url('menu2.png');color:black }
li#menu3 { height:/*height of image*/; width:/* width of image*/;background-image:url('menu3.png');color:black }
/* and mouseover effects something like */
li#menu1:hover { /*not necessary to repeat unchanged items */ color:PINK }
li#menu2:hover { /*not necessary to repeat unchanged items */ color:PINK }
li#menu3:hover { /*not necessary to repeat unchanged items */ color:PINK }

I use 3dapperance.png-s with a transparent background, the hover effect changes background and text colors, looks good
css is four state, derfault hover active visited, there are lots of fun things to play

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

'looking' is not an attempt,

this community has rules, RTFM

almostbob 866 Retired: passive income ROCKS

bubbafunk
Yes * means everything BUT Context is King

elementA {space} * means everything that is a child of elementA
just as the robot has written
why it didnt work, for YOU, will have to wait till a guru comes along, I dunno

almostbob 866 Retired: passive income ROCKS
<?php if(isset($_POST['field1')){ 
if(isset($_POST['field2'])) { 
/* validate field values  
 if values acceptible
 connect to database 
 update database 
 set disabled flag ($disabled = true ) to prevent resubmission */ } } ?>
<form action='<?php echo $_server['PHP_SELF']; ?>' method='post'>
<input type='text' name='field1' value='<?php if(isset($_POST['field1'] {echo $_POST['field1'];} ?>' /><br />
<input type='text' name='field2' value='<?php if(isset($_POST['field2'] {echo $_POST['field2'];} ?>' /><br />
<input type='submit' value='whoopdiedoo' <?php if(isset($disabled) {echo 'disabled="disabled"';} ?>/></form>

incomplete code scrap
Form submits to itself displays the values submitted in the form (very messy code but its ONLY a sample of what can be done)

almostbob 866 Retired: passive income ROCKS

just sick of people not making any attempt,
now post the code you have worked out for assistance

almostbob 866 Retired: passive income ROCKS

I went to the site,
theft of copyright material is not good
i thought you were having trouble with a script you obtained lawfully
If you did obtain those clocks lawfully, you should have no trouble requesting the site owners assist you with installation
there are clocks you can download from script repositories that dont need to be stolen.

almostbob 866 Retired: passive income ROCKS

I can navigate to your profile page in Daniweb,
I can view it, unless I am logged in as you I cant edit it,

this is what user control scripts do.

I cant be sure, .htaccess mod_rewrite is seamless invisible to the user, but it is hugley unlikely that Daniweb keeps 500000 odd static html pages, when the database can fill in the blanks in a template page so easiliy

RewriteEngine On
RewriteRule /profiles/(*).html /profiles.php?user=$1 [R,NE]

(untested possible syntax errors too lazy to check the format) should redirect all /profiles/xxxxx.html to profiles.php?user=xxxx , its as simple as that

almostbob 866 Retired: passive income ROCKS

let me google that for you

Sounds in web pages are annoying, sounds on buttons provide feedback

almostbob 866 Retired: passive income ROCKS

I have done some testing and the SRC I inserted for the font is just a standard .ttf (Truetype Font) file (If you open it directly in your browser it downloads as a file called font.ttf)

what you download and get in your browser has nothing to do with what the server is able to do with it, and whther the file is called as a download url or as a linked css file may effect the processing applied by the server.
thats what php perl asp python are for.

samarudge commented: Helpful as always +3
almostbob 866 Retired: passive income ROCKS

Yes I understand CSS3 isn't complete, however my first code snippet WORKS in ALL 4 major browsers, however when I load the font from my own server with the exact same code it doesn't work.

sorry bloke was posting and thinking at the same time, took a bit to find the link was looking for, retry the above post

almostbob 866 Retired: passive income ROCKS

font selection is css3.
CSS3 is not complete and only partially implemented,
no browser yet released supports all of css3 and what support there is is buggy as the standard is not complete
absolutely pointless to include something that will NOT work in 90%+ browsers, so google have on the helpscreens of their site how to make non-css3 browsers act like they know whats going on
http://code.google.com/apis/webfonts/docs/webfont_loader.html#Example

The WebFont Loader is served through the Google AJAX Libraries API.

It provides events that are fired at different stages of the loading of the fonts. You can either write code to react to those events, or use CSS styles defined by the library to automatically make styles change when fonts have finished loading

EDIT:: would (probably) be better to access the files off the google repositoroy, than your server,
their (Google) server farm is spread all over the world and is way faster than your server. gets you the advantage of multi-sourcing the http protocol allows only two files from each domain to parallel, but can stream 2 files from three domains (=6) at the same time.
Other sites are likely to be using the same file from google, if not now, in the near fuure, the browser may find the css already in the user tif and not dl it.

almostbob 866 Retired: passive income ROCKS

http://www.raveportal.com/1347_How_to_list_files_with_*_after_executables,_/_after_directories_and_@_
RTFM acceptable characters only. every url has to parse through a dozen servers between the idiot who wrote the site and the idiot reading it. most of those servers only accept a very limited character set
asterisks commas dot @ are acceptable NOT

almostbob 866 Retired: passive income ROCKS

the text is supposed to be pushed behind the footer, the footer remains stationary and the page pushes behind it, If the text does not scroll up far enough ad a whitespace to the bottom of the text <p>%nbsp;</p>

almostbob 866 Retired: passive income ROCKS

most clock scripts are 'smart' and will run on system time if the parameters are left blank
try clock = new Clock();

almostbob 866 Retired: passive income ROCKS

swf is not java
swf is not javascript
java is not javascript

swf is ShockWave Flash the best place for basic scripts is adobe.com, the maker

this Q&D page http://www.w3schools.com/flash/flash_inhtml.asp will get you running, the .swf is already made, start at number 4

flash does not work if the plugin is not installed on the user browser, do not depend on the .swf for anything important

almostbob 866 Retired: passive income ROCKS

post the actual code,
the error message is not sufficient
the code shown in the posted message is invalid; the file name is not quoted

almostbob 866 Retired: passive income ROCKS

look at the documentation for .htaccess mod_rewrite for your apache server
it is easy in .htaccess to change the displayed url of /mysite.com/profile.php?user=XXX to /mysite/profiles/XXX.html (or anything else)
everyony can see /profiles/ben.html
but session/login set that only someone properly logging in as Ben can modify /profiles/ben.html
there is no requirement for any personalised pages to actually exist, my site has 1600 pages in google,
=> 15scripts 2db and 307folders full of vid + images (BLOB take too long) make those pages, (several thousand pages that arent different enough to get indexed)
-none of the pages exist

all database, queries create the page on the fly in a php template, output to the browser as .html,
updates to allow the user to make LIMITED modification to their own details
there is definitely no requrement to copy anything on the server, not the approach used anywhere

your profile page here on DaniWeb likely does not exist either, its likely to be profile.php pulling your details from the database

perhaps a bit long for the reply, but its a shitload easier to build it right, when you design the site, than to fix it later when there are (hopefully, good luck anyway) thousands of users overloading your server

likely all this stuff can be found in one of the script repositories; hotscripts phpscripts cnet.download justscripts,
already made under general headings :: user-control, access control, subscription control, membership

edit

almostbob 866 Retired: passive income ROCKS

remove the dot underscore, and read the acceptible charset notes

almostbob 866 Retired: passive income ROCKS

not marked solved
code sample

@media print { .dontprint {display:none;} }
<input type='submit' class='dontprint' value='send' />
almostbob 866 Retired: passive income ROCKS

No, the content of the iframe is generally stolen from an external site so has that site's scripts and css and copyright notice
contact the other site owner to request a copy of the content to include in your site with appropriate attribution,
or write your own content

all site owners should place framebreaker scripts in their menu include to prevent such theft

almostbob 866 Retired: passive income ROCKS

users may submit without filling in either password input so

<form id="form1"  name="form1" method="post" action="pcq.php" onsubmit='validate();'>

yes you can use a lightbox popup
instructions are in the lightbox docs,
RTFM

almostbob 866 Retired: passive income ROCKS

Mac owners: because IE still has 75% of the market so designed pages have to work in IE, test bed,
being Mac users they dont know that IEmac is not IE or mac, they expect it to work

almostbob 866 Retired: passive income ROCKS

The fancybox code is not true html, like the firefox css moz- extensions it will not validate,
but because it is an extension only on pages where the fancybox script is already running fancybox will always intercept what the html parser in the browser would interpret as ?HUH what the hell is this, I will spit the dummy?
and the page display will work
Keep the code as is, even the most picky user browser will get a functioning page,
if the w3 validators were (doubt if it could be too many scripts) programmed to recognize ALL the available plugins it would probably not bounce the html in the title tags

edit: If Id read the whole OP, instead of jumping to a line that errored, I would have noticed the fancybox script in the head and this should have been the first reply, :embarrassed:

almostbob 866 Retired: passive income ROCKS

the image is already linked, it is wrapped in an <a><img /></a>, can make the tumb display the large image on mousover and foward to the html page as the href, may accomplish what this code seemse to do

almostbob 866 Retired: passive income ROCKS

further explanation

<td><a class="zoom" rel="gallery" title="An image entirely created using a shape and layer effects. &lt;br/&gt; &lt;a class='galLink' href='wolfGlow.html' onclick='$.fancybox.close();'&gt;Click Here For More Info&lt;/a&gt;" href="images/gallery/wolfGlow/finished.jpg"><img src="images/gallery/wolfGlow/finishedTb.jpg" alt="" /></a></td>

title="An image entirely created using a shape and layer effects. &lt;br/&gt; &lt;a class='galLink' href='wolfGlow.html' onclick='$.fancybox.close();'&gt;Click Here For More Info&lt;/a&gt;" cant contain html, text only, links alts etc already inside a link throw the parser into fits
this scrap &lt;/a&gt; closes this link <td><a before the final > of the <a> everything after that fails

title="An image entirely created using a shape and layer effects."

almostbob 866 Retired: passive income ROCKS

no html in title tags

almostbob 866 Retired: passive income ROCKS

not bad, just drawn that way :jessica_rabbit:
a learning experience,
learn from mistakes, we have already learnt have therefore made more mistakes,
NOT the best way to build an Abomb though, Dos V'danye

almostbob 866 Retired: passive income ROCKS

javscript is so passe, so blockable, so insecure -=resides on the user browser

input.submit {background: bla bla bla; color: bla bla bla; width:bla; height;bla; /* any other css bla bla bla */ }
input.submit:hover {background: otherbla bla bla; color: otherbla bla bla; width:bla; height;bla}
input.submit:active {background: otherotherbla bla bla; color: otherotherbla bla bla; width:bla; height;bla}
input.submit:focus {background: otherbla bla bla; color: otherbla bla bla; width:bla+10; height;bla+5}[
almostbob 866 Retired: passive income ROCKS

just the format of the code to put in the cookie too leave off the www and make the cookie refer to .mysite. let me open up my notes, probably the next link is the php one

edit: yep, subdomain cookies at php.net http://php.net/manual/en/function.setcookie.php

domain
The domain that the cookie is available. To make the cookie available on all subdomains of example.com then you'd set it to '.example.com'. The . is not required but makes it compatible with more browsers. Setting it to www.example.com will make the cookie only available in the www subdomain. Refer to tail matching in the » spec for details

in 'parameters' at the top of the page

peter_budo commented: Compasation for previous mistake +14
almostbob 866 Retired: passive income ROCKS

ASP.net is limited in the number of sites it will work on as it is Microsoft - Specific and there are relatively few MS servers,
However MS asp.net servers are often large sites and MS products ASP.net needs a lot of maintainence, and pay very well for that maintainence.
getting queries of-- 'I found this site in asp, can you make me a version that will run on my apache mysql php site'
and simply the more you know the more you can do

almostbob 866 Retired: passive income ROCKS
.footer { bottom:0; top:auto; width:100% position:fixed; z-index:10; text-align:center; }

usually works
the element given class='footer' sticks in position at the bottom of the page at z-index 10 (above the default 0) other content slides under it as the page moves up or down

<div class='footer'> [copyright] [contactus] [hi mum] [spaghetti recipes][cat pictures] [nomz] </div>
almostbob 866 Retired: passive income ROCKS

subdomain persistence cookes: try: http://www.15seconds.com/issue/971108.htm

almostbob 866 Retired: passive income ROCKS

infomation that wasnt in the first post,
sub1.mysite.com and sub2.mysite.com have the same path from the server root so
try <form action='<?php echo $_SERVER['DOCUMENT_ROOT'];?>/login.php' method='post'> if sub1.mysite.com is directed to www.mysite.com/subfolder1/subfolder2 then relative links ..(up one) will work even if they lead above the root of the subdomain <form action='../../login.php' method='post'> (demo: up two) it may be enough to count the folders back to the www root

both methods work, the first one on a site where subdomains all point to folders one level below the wwww root(planned in advance), the second on a site where the original work was built (hashed together) over years and many generations of code, (and is still patched when problems occur instead of being rewritten properly(aarrrgh time there is never enuf))

almostbob 866 Retired: passive income ROCKS

<form action='/login.php' method='post'> relative link on your site work?

almostbob 866 Retired: passive income ROCKS

more patches, compliant(? somewhat less so) browsers spit it over 0px 0em 0% 0pt 0in 0cm, zero is dimensionless
spit it over calculated absolute positions unless told to calculate
need to be told to fill the screen width

#footer{ position:fixed; bottom:0; top:auto; width:100% z-index:10; }
almostbob 866 Retired: passive income ROCKS

current best practice for layout dimensioning is ems and %, relative dimensions that auto adjust to window size, screen resolution, and user preference enabling a single site layout to work in everything from a handheld device to a widescreen monitor, and permitting disabilty friendly display. All fixed sizing is outdated

almostbob 866 Retired: passive income ROCKS

Dynamic Drive DHTML scripts- Terms of Use
Unless indicated otherwise by the credit, all scripts on this site are original scripts written by the authors of Dynamic Drive, and are protected by both US and international copyright laws. The below lists the terms of use users of Dynamic Drive must agree to before using the programs/scripts (Last updated: May 22nd, 06):

1.Users may use any DHTML scripts offered for download on Dynamic Drive, free of charge, on both personal and commercial web sites. This includes web designers who wish to use our DHTML scripts in their paid web site projects.
2.You may modify our scripts to customize them based on your needs.
3.Users may NOT, however, redistribute or repost/ resell for download any DHTML script found on Dynamic Drive. Redistribution is defined as re-offering our scripts for download in any fashion, whether on a competing web site, an application that generates code snippets, or a CD-ROM collection of CSS/JavaScript codes etc. Some examples of what is acceptable and what is not are:

BOLD RED HIghlighting of the relevant line of the Terms Of Use added so even ignoramuses can't miss it

ergo, Thief

I already knew the terms of use,

zero

almostbob 866 Retired: passive income ROCKS

further to pwinfrey's reply, answer to the expected follow up question
Yes the link http://www.mysite.com/mypage.html#top works as expected it moves the page to the anchor defined by name='top' when the page is opened

tokenjoker187 commented: Read my question fully and gave extra input on the problem. Thank you! +1
almostbob 866 Retired: passive income ROCKS

'found' (stole) the property of another author and disseminated it in contravention of the terms of use and copyrightsteal a car and offer it to others to drive, does not make a 'nice guy', it makes a thief
unable to understand terms of use, makes an igonorant thief, but still a thiefMany posters on this board are authors of commercial scripts, should they be pleased at some moron deciding to release their work to the public against their wishes, thats what COPYRIGHT NOTICES are.
Should Csgal, & mods & those who put in time effort, endure any fiscal consequences of some moron's actions on the board

on a scale of 0-10
ya still personify zero

almostbob 866 Retired: passive income ROCKS

and its not written by you,
you stole copyright material unattributed from Dynamic Drive
& Google apps Libraries, very piss poor

your attempt to alter my scores, failed,
thousands of posts, hundreds of kudos, hundreds of solved threads,
please continue if you wish, it wont take too many days for even something like you to find all my posts,

value scale 0 - 10
DarkBerzerk, you personify zero

peter_budo commented: Well spotted. Thank you -3
almostbob 866 Retired: passive income ROCKS

useless crap, top of page links do not need javascript, and are a single line of html

<a name="top"></a><a style="background:transparent; color:#000000; text-align:right; font-size:85%; top:auto; left:auto; bottom:1px; right:1px; position:fixed;" name="gototop" href="#top">↑Top</a>

(inline css added for clarity, css belongs in the stylesheet)

almostbob 866 Retired: passive income ROCKS
#left{ float: left; margin: 0; padding: 0; width: 221px; font-size: .9em; height: auto; border-right:1px solid black; }
#right{ margin: 0 0 0 220px; padding: 0 0 0 10px; height: auto; border-left:1px solid black;}
#wrap{ width: 100%; margin: 0 auto; 	padding: 0; }

this works on my desktop.
left column has a border 1px on the right
right column has a border 1px on the left, on top of the left column border
so whichever is longest looks ok ?
look at width(left) and margin(right) for the two columns, added some padding to the right column to keep it away from the border
HTH

almostbob 866 Retired: passive income ROCKS

ID can only refer to a single element you cant have two elements id='cbmessage' thats why your script is failing
you can foreach on getelementbyname

almostbob 866 Retired: passive income ROCKS

sorry papanyquit, this happens often, no personal attack intended padding:0; zero has no dimension, dimensions may throw compliant browsers off and render in quirks mode
1px <> 1em <> 1%
0px = 0em = 0% == 0

I havent looked at prior solutions, this post may not be relevant to the thread

almostbob 866 Retired: passive income ROCKS

& of course, when you get stuck on a project, ask here

almostbob 866 Retired: passive income ROCKS

style the buttons
you can do anything in css

input.print {background:src(bla bla bla)}
<input class='print'>

has the appropriate image, you dont really need the image you can style the button itself, images take size, extra http calls, time

Lusiphur commented: That's why you make the big bucks... oh wait, we don't get paid for this do we? :P +1
diafol commented: nice AB +6
almostbob 866 Retired: passive income ROCKS

many ide include an internal version of the php interpreter so others become a little superfluous, AS Long As the included version is current or updateable.
I use DevPHP thumbdrive version to take to clients offices, its very small fits on a 512mb thumbdrive, no install, but use xampp at 'home' as DevPhp has limited sql support