Jump to content

JohnDoe

Active Members
  • Posts

    104
  • Joined

  • Last visited

Everything posted by JohnDoe

  1. Uite script, <form action="" method="post"> <input type="text" name="id"> <input type="submit"> </form> <?php if(isset($_POST['id'])){ if(file_get_contents('http://opi.yahoo.com/online?u='.$_POST['id'].'&m=a&t=1')=='00'){ echo 'Ofline.'; } else { echo 'Online.'; } } ?>
  2. JohnDoe

    Help

    Un inceput foarte bun pentru partea front-end ar fi http://www.tutorialehtml.com/ . Iar pentru back-end iti recomand http://php.punctsivirgula.ro/ .
  3. JohnDoe

    jQuery Plugins

    Plugins, Extensions & Tutorials developed by jQuery contributors for jQuery JavaScript Library. http://www.jqueryplugins.com/
  4. Fisier verificare.php: <? if($_GET['nr']>10){ die(header('location ...')); }?>
  5. http://www.textfiles.com/ - The files on TEXTFILES.COM are maintained by somewhat arbitrary guidelines, so if a file you're looking for is not in one section, try a few others. Files are often in the "8+3" format, but since they're coming from all sorts of sources, this isn't guaranteed. Our focus is on the years 1980-1995, but files from before and after sometime sneak in. tags: textfiles, articles, old files http://www.stripegenerator.com/ - Tired of pixel-by-pixel painting, trying to create seamless stripes textures? Here we are! Enjoy using stripe generator! Unleash your personal style, experiment and download the tile. You can use it directly in your css file or as pattern in Photoshop! tags: patterns, design, textures, styling http://colrd.com/ - Welcome to the world of color! Explore our huge library of color inspiration, or create your own! tags: colors, patterns, desingn, gradients http://www.thewebdesignblog.co.uk/ - Our plan is to publish informative resources to help people get the most out of web design. Our articles will be written by myself or by other designers and developers in the industry. If you would like to publish a post please get in touch for more information. tags: webdesign, blog, tutorials, web-programming, inspiration http://www.chromeexperiments.com/ - Chrome Experiments is a showcase for creative web experiments, the vast majority of which are built with the latest open technologies, including HTML5, Canvas, SVG, and WebGL. All of them were made and submitted by talented artists and programmers from around the world. tags: html5, chrome, javascript, experiments, canvas, technology, webgl Eu consider website-urile de mai sus foarte interesante. Enjoy'em!
  6. De ideea cu comutarea video-urilor ce parere aveti ?
  7. Imi place conceptul, felicitari... dar. Am dezvoltat o versiune mai buna (mai functionala). E facut cu jQuery, daca nu ai javascript pornit este acelasi script original, deci te duce pe search youtube. Daca ai javascript pornit se deschide un box cu primul video de pe youtube dupa keyword-ul fisierului pe care dai click. <!doctype html> <html lang="en"> <meta charset="UTF-8" /> <title>make my playlist v2</title> <style> body{ background-color:#fff; text-align:left; color:#444; } a{ text-decoration:none; color:#000; font-family:arial; font-size:12px; } a:hover{ background-color:#0099ff; } #links{ display:block; } #box{ width:100%; height:80%; position:fixed; top:10%; bottom:10%; display:none; background-color:#fff; border-top:2px solid #000; border-bottom:2px solid #000; text-align:Center; z-index:1; } .push{ margin-left:50px; } #count{ font-size:30px; font-family:arial; } #title{ font-size:24px; background-color:rgba(0,100,200,0.5); text-align:Center; } </style> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript"> /* SCRIPT YOUTUBE INSTANT -- SURSA - http://www.9lessons.info/2010/09/youtube-instant-search-with-jquery-and.html -- modificata de JohnDoe @ rstcenter.com/forum - http://rstcenter.com/forum/42750-php-make-my-playlist.rst */ function close(){ $('#box').html('').hide(); } $(document).ready(function() { $('a').click(function() { var keyword= $(this).attr('title'); // Youtube API var yt_url='http://gdata.youtube.com/feeds/api/videos?q='+keyword+'&format=5&max-results=1&v=2&alt=jsonc'; $.ajax ({ type: "GET", url: yt_url, dataType:"jsonp", success: function(response) { if(response.data.items) { $.each(response.data.items, function(i,data) { var video_id=data.id; var video_title=data.title; var video_viewCount=data.viewCount; // IFRAME Embed for YouTube var video_frame="<iframe width='840' height='585' src='http://www.youtube.com/embed/"+video_id+"' frameborder='0' type='text/html'></iframe>"; var final="<div id='title'>"+video_title+"</div><div>"+video_frame+"</div><div id='count'>"+video_viewCount+" Views</div>"; $("#box").fadeIn().html('<a href="javascript:close()">Close this box.</a><br />'+final); // Result }); } else { $("#box").fadeIn().html('<a href="javascript:close()">Close this box.</a><br /><div id=\'no\'>No Video</div>'); } } }); return false; } ); }); </script> <body> <section id="links"> <?php function link_my_dir($directory , $ignore = array()){ if ($handle = opendir($directory)) { $tokens = explode(DIRECTORY_SEPARATOR , $directory); echo '<div class="push">'; if(!empty($ignore)){ echo $tokens[count($tokens) - 1 ].'<br/>'; echo '<div class="push">'; } while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && $file !='nfo.nfo') { if(is_dir($directory.DIRECTORY_SEPARATOR.$file) && !in_array($directory.DIRECTORY_SEPARATOR.$file , $ignore)){ $ignore[] = $directory.DIRECTORY_SEPARATOR.$file; link_my_dir($directory.DIRECTORY_SEPARATOR.$file , $ignore); }else{ $to_echo = str_replace(array("[www.keepvid.com]", "_" , ".mp4" , ".mp3") , "" , $file); $search_query = str_replace("-" , "" , $to_echo); $search_query = str_replace(" " , "+" , $search_query); $fix_space = explode("+" , $search_query); foreach($fix_space as $k=>$f){ if($f == '') unset($fix_space[$k]); } $search_query = implode("+" , $fix_space); //echo "$to_echo . Link : http://www.youtube.com/results?search_query=$search_query&aq=f<br/>"; echo '<a class="jqq" title="'.$to_echo.'" target="_blank" href="http://www.youtube.com/results?search_query='.$search_query.'&aq=f">'.$to_echo .'</a><br/>'; } } } echo '</div>'; echo '</div>'; closedir($handle); } } echo "Results : <br/>"; link_my_dir('C:\music'); //unde ai muzica ?> </section> <div id="box"></div> </body> </html> Image-- Uploaded with ImageShack.us //edit Am observat ca nu de fiecare data este returnat un video la cate te astepti (de ex daca pui o melodie si poate iti da numai demo-ul, sau o versiune mai scurta, sau poate vrei videoclip...). As putea sa dezvolt unpic mai mult codul astfel incat sa poti comuta video-urile ... daca nu iti place video-ul sa poti sa mergi pe urmatorul din lista celor returnate in functie de acel keyword care este in 'title' la fiecare link. Are rost sa mai fac si asta sau nu ?
  8. Salutare, Mai jos am sa postez aici cateva informatii despre mine. Numele meu este David. Sunt la liceu. Dezvoltarea web mi se pare un domeniu foarte interesant. De aceea acum un an am inceput sa invat HTML. Ca si limbaje pot spune ca inteleg PHP si Javascript. Sunt perfectionist, daca ceva nu imi place cum arata sau cum functionaza trebuie neaparat sa il schimb sau sa il las balta (in orice domeniu). In fiecare zi lucrez la un proiect, dupa ce il termin fac o pauza, mai citesc, dupa care incep un nou project. Dar asta fac din placere si imi doresc sa imi fac o cariera din asta. Am sa postez pe forum proiectele mele cele mai bune, sperand sa primesc feedback.
×
×
  • Create New...