Animated Page Scrolling with Jquery
Jul0
Animated Scrolling with Javascript Example
Contruct anchor tages as usuall
download jquery.js
download scrollto.js -> I got the originall at leaneringjquery.com but it was packed, i unpacked it and made the following changes on lines 681
//jQuery.dequeue(z.e, ‘interfaceFX’)
jQuery(e).dequeue(’interfaceFX’);
put the two .js files in a folder named /java/ on your web root
add these lines in your header
<script src=”/java/jquery.js” type=”text/javascript”></script>
<script src=”/java/scrollto.js” type=”text/javascript”></script>
markup anchors like this (example)
<a href=”#background”>Background</a><br />
<p>
<strong><a name=”background” id=”background” class=”anchor”>Background</a></strong>
Since 2000 healthcare organizations have been adapting concepts and practices borrowed from the Toyota Production System (TPS/Lean) to improve the delivery of care and reduce costs. A variety of approaches have been implemented, some more successful than others and some in specific areas of the organization, but few with a comprehensive plan that would optimize all areas of healthcare operations. This proposal strongly suggests that the witnessed successes of some can be realized across the industry if executed with a comprehensive plan and shared openly. The plan outlined in the Program proposed herein would provide structure for the participating organizations and demonstration of the plan and results to limitless numbers of observers/adopters.
</p>
Remove Blank Lines from file with dreamweaver
Jul0
1) select an entire blank line (click on the line number)
2) with the blank line selected do a find and replace (ctrl f)
3) replace the blank line with some unique character string (i.e. —–) string shouldn’t occur any were else in the file
4) replace all no this will get rid of all line breaks, but they will now be replaced by —–
5) open a file that contains a blank line, select it and copy it (ctrl c)
6) go back to your original file
7) select —–
find and replace (ctrl f)
9) paste the blank line in the replace with field
10) replace all
mysql delete rows with duplicate data
Jul0
DELETE
FROM table1
USING table1, table1 AS vtable
WHERE vtable.id > table1.id
AND table1.field_name = vtable.field_name
add .html file extension to php code coloring and hints for dreamweaver
Jul0
so you have apache set up to parse .html files as if they were php ( see http://answers.ironlasso.com/?p=6) Now you want dreamweaver to code color them like it does .php files. Here’s what you do
to add .html extension to php code coloring and hints
-open MMDocumentTypes.xml somewere under program C:\Program Files\Macromedia\Dreamweaver 8\Configuration\DocumentTypes
search xml file for .php
-add .html extension to php
-remove it from html
apache mime types
Jul0
Ever wonder what server side language a site uses? Normally you can tell by there file extensions .php .asp .cfm. But about sites who have extensions like .go or have .html pages that you can tell have alot more that just html going on behind the seens.
well you can make apache parse any extension as if it were php with what is called a mime type. For example
to enable .html to run like php add
AddTpye application\x-httpd-php .html
to your httpd.conf file then restart apache and caboom ever .html page on your site is php ready. Whats the point? Well for the most part its confuse the opposition (hackers, competitors, etc..). However that being said anyone with a little internet know how can figure out the servers side language(s) being used on a page, but i’ll leave that for a different post
php, javascript, flash file upload progress bar
Jul0
Here is my version of file upload progress bar that is somewhat web friendly (original code by http://www.pixeline.be/). It makes use of javascript, php, and flash. It gets the job done regardless if JavaScript is turned off or on. If JavaScript is turned off in the browser the file still gets uploaded you just don’t get the progress bar.
Download here http://www.ironlasso.com/downloads/progress_bar.zip
unzip put the “progress_bar” anywhere on your site should be good to go.
Here are the files
demo.html :front end file upload form
falsh_upload.php : php file that actually does the file uploading
jqUploader.swf : flash that shows the progress bar
/files/ : destination folder of the uploaded files
various javascript and css files