AlfieWebDevTips Homefor new and experienced developers
[Home Home] [Web Development Web Development ] [Code Generators Code Generators ] [Resources Resources ] [Forums Forum ] [Contact Us Contact ] |WebDevTips Privacy Privacy |

WebDevTips Pick Of The Day : ".$todaytip[$today]." |

"; ?>
Print This Page



 


You are here : Home - Web Development - DHTML

DHTML


setSearchType("lite"); $xml = $amazonAPI->browseNodeSearch($input,$mode); $amazon = new AmazonLiteXMLParser($xml); $x=0; if(!is_array($amazon->records)) { 'Error!'; exit; } if(isset($amazon->errorMsg)) { echo "
{$amazon->errorMsg}
"; exit; } $cachedir = "cache/"; $cachetime = 30; $thefilename = $todayday.".xml"; $cachepath="store/"; $thefile=$cachepath.$thefilename; //$thefile= $cachedir.$cachefile; if($mode == "ebooks"){$mode="books";$newmode="ebooks";} $page=1; $amazonAPI->setSearchType("lite"); if(file_exists($thefile) && time()-filemtime($thefile)<$cachetime*60){ $xml = implode('', file($thefile)); } else {$savetocache=1;} if($savetocache){ $xml = $amazonAPI->browseNodeSearch($input,$mode); $cf = fopen($thefile,"w+"); fwrite($cf,$xml); fclose($cf); } $amazon = new AmazonLiteXMLParser($xml); $x=0; if(!is_array($amazon->records)) { 'Error!'; exit; } if(isset($amazon->errorMsg)) { echo "
{$amazon->errorMsg}
"; exit; } ?> records as $ind => $arr) { $arr['productname'] = preg_replace("/(.*\/sup>)/","TM",$arr['productname']); $x++; if ($x <= 5){ //if($x==1 || $x==4){echo "";} ?> ";} } } ?>

Cover

 

Dynamic HTML (DHTML) allows you more control over how your webpages display. A combination of HTML, JavaScript and style sheets means you can now bring your webpages to life - without additional software.

Have you got any DHTML tips or guides you'd like to share with others? Find out how you can help.






Google
 

[back to top of page]   

[labelled with icra -  - this link will open in a new window] [RSS Content]

[Copyright © WebDevTips]