Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('config.php');
- ?>
- <!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">
- <head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <script src="http://www.google.com/jsapi" type="text/javascript"></script>
- <script type="text/javascript">google.load("swfobject", "2.1");</script>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
- <script src="http://www.tracksandclips.com/swfobject.js"type="text/javascript"></script>
- <script src="http://www.tracksandclips.com/javascript.js"type="text/javascript"></script>
- <script src="http://www.tracksandclips.com/lib_cookie.js" type="text/javascript"></script>
- <script type="text/javascript" src="http://www.tracksandclips.com/external.js"></script>
- <script src="http://www.tracksandclips.com/mainFunctions.js" type="text/javascript"></script>
- <script src="http://www.tracksandclips.com/jquery.colorbox.js" type="text/javascript"></script>
- <title>Tracks and Clips - Random music and video's.</title>
- <base href="http://www.tracksandclips.com/" />
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="keywords" content="Tracks, Clips, Random, Hits, Random hits, Random Tracks, Random Clips, Music, Video, Music Video, Free Online Music, Free, Online, Music, top 40, Rock, Pop, Jazz, Big Band" />
- <meta name="description" content="Tracks And Clips .com is the best site to listen to the best Tracks and Video Clips. We Play a random hit and with this track we play a random video." />
- <meta name='Author' content="Stef ter Braak" />
- <meta name='Copyright' content="2011 tracksandclips.com" />
- <meta name="robots" content="index, follow" />
- <meta name="revisit-after" content="7 days" />
- <link href="style.css" rel="stylesheet" type="text/css" />
- <link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
- <script type="text/javascript">
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-22730916-1']);
- _gaq.push(['_trackPageview']);
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
- </script>
- <script type="text/javascript">
- // JavaScript Document
- //Instellingen
- //Dit laten zien bij geen vorig liedje beschikbaar
- var lineNoPreviousSong = "No previous song available.";
- //laatste 20 liedje onthouden die zijn afgespeeld
- var songsToRemember = 15;
- //liedjes die we niet meer willen.
- var dontPlay = 5;
- //debug
- debug = false;
- //Youtube functies
- //Als de video geladen is.
- var ytplayer;
- function onYouTubePlayerReady(id) {
- ytplayer = document.getElementById(id);
- ytplayer.addEventListener("onStateChange", "onPlayerStateChange");
- ytplayer.addEventListener("onError", "onPlayerError");
- }
- var playerState = 1;
- function pauseVideo(imgPause,imgPlay,imgId) {
- if (playerState == 2) {
- ytplayer.playVideo();
- $("#" + imgId).attr("src", imgPause);
- } else {
- ytplayer.pauseVideo();
- $("#" + imgId).attr("src", imgPlay);
- }
- }
- var repeatSongActive = false;
- function onPlayerStateChange(state) {
- //laad nieuw liedje wanneer player state = 0 bij einde liedje
- playerState = state;
- if (state == 0) {
- if (repeatSongActive == true) {
- loadYoutubePlayer(activeId, activeArtist, activeSong);
- } else {
- loadPlayer();
- }
- }
- }
- //Deze fucntie wanneer een error voorkomt
- function onPlayerError(errorCode) {
- //Nieuw liedje laden
- loadPlayer();
- }
- //Wanneer geladen liedje laden
- $(document).ready(function () {
- //Laden met willekeurig liedje
- loadPlayer();
- })
- var count = 1;
- var moveList = true;
- var activeArtist = "";
- var activeSong = "";
- var activeId = "";
- //Laden van willekeurig liedje en afspelen
- function loadPlayer(previousSong) {
- if (repeatSongActive == true) {
- repeatSong(repeatImgId, repeatImgNormal, repeatImgNormal);
- }
- //Legen van musicplayer
- $("#MusicPlayer").html('<div id="youtubePlayer"></div>');
- //Nieuw liedje laden dat nog niet gespeeld is
- if (previousSong == null) {
- var check = true
- do {
- var songInformation = getSong();
- check = checkSongPlayedBefore(songInformation)
- } while (check == true);
- var song = songInformation.split(";")[0];
- var title = songInformation.split(";")[1];
- var songName = songInformation.split(";")[2];
- //Lijst van laatste liedjes
- if (count > 1) {
- count -= 1
- }
- generateLastSongList(song, title, songName, count);
- if (count == 1 && moveList == false) {
- moveList = true;
- }
- } else {
- songInformation = previousSong;
- }
- var song = songInformation.split(";")[0];
- var title = songInformation.split(";")[1];
- var songName = songInformation.split(";")[2];
- //debug informatie
- if (debug == true) {
- var debugTxt = "Debug mode is on\n\n" + "Last " + songsToRemember + " songs Played:\n\n";
- var z = 1;
- for (i = 1; i <= songsToRemember; i++) {
- var valueToShift = $.cookie("song" + i);
- if (valueToShift == null) {
- valueToShift = ";;";
- }
- debugTxt += z + ". " + valueToShift.split(";")[1] + " - " + valueToShift.split(";")[2] + "\n";
- z += 1;
- }
- debugTxt += "\nSong playing now:\n"
- debugTxt += title + " - " + songName;
- alert(debugTxt);
- }
- //Liedje laden in youtube
- loadYoutubePlayer(song, title, songName);
- activeArtist = title;
- activeSong = songName;
- activeId = song;
- }
- function loadYoutubePlayer(song, title, songName) {
- swfobject.embedSWF("http://www.youtube.com/v/" + song + "&enablejsapi=1&playerapiid=youtubePlayer&autoplay=1&rel=0", "youtubePlayer", "426", "356", "9", null, {}, { allowScriptAccess: "always", wmode: 'transparent' }, { id: "youtubePlayer" });
- $("#videoInfo").html(title + " - " + songName );
- }
- //Om te kijken of liedje al gespeeld is
- function checkSongPlayedBefore(songInformation) {
- var PlayedBefore = false;
- for (i = songsToRemember; i > 0; i--) {
- var valueToShift = $.cookie("song" + (i - 1));
- if (valueToShift == songInformation) {
- PlayedBefore = true;
- }
- }
- return PlayedBefore;
- }
- //Lijst van laatste liedjes
- function generateLastSongList(song, title, songName, position) {
- if (position == 1 && moveList == true) {
- for (i = songsToRemember; i > 0; i--) {
- var valueToShift = $.cookie("song" + (i - 1));
- if (valueToShift == null) {
- valueToShift = ";;"
- }
- $.cookie("song" + i, valueToShift);
- }
- }
- $.cookie("song" + position, song + ";" + title + ";" + songName);
- }
- //Speel laatste liedje
- function playPreviousSong() {
- moveList = false;
- count += 1
- song = $.cookie("song" + count);
- if (song == ";;") {
- count -= 1
- alert(lineNoPreviousSong);
- } else {
- loadPlayer(song);
- }
- }
- //Repeat
- var repeatImgNormal;
- var repeatImgId;
- function repeatSong(imgId, img_normal, img_active) {
- repeatImgNormal = img_normal;
- repeatImgId = imgId;
- if (repeatSongActive == true) {
- repeatSongActive = false;
- $("#" + imgId).attr("src", img_normal);
- } else {
- repeatSongActive = true;
- $("#" + imgId).attr("src", img_active);
- }
- }
- //Willekeurig liedje genereren
- function getSong() {
- <?php
- $sql = mysql_query('SELECT id, link, artiest, titel, ind FROM songs WHERE ind = "true" ') or trigger_error(mysql_error());
- while($fetch = mysql_fetch_array($sql)) {
- ?>
- song[<?php echo $fetch['id']; ?>]="<?php echo $fetch['link'].';'.$fetch['artiest'].';'.$fetch['titel']; ?>"
- <?php
- }
- ?>
- var songToPlay = song[Math.round(Math.random() * 445)];
- return songToPlay;
- }
- </script>
- </head>
- <body>
- <div id="container">
- <div id="flags">
- <a href="http://tracksandclips.com"><img src="images/flags/us.png" width="20" height="13" border="0" /></a>
- </div>
- <div is="google-ads">
- <script type="text/javascript"><!--
- google_ad_client = "pub-2551796150259317";
- /* 728x90, created 8/7/11 */
- google_ad_slot = "5478828692";
- google_ad_width = 728;
- google_ad_height = 90;
- //-->
- </script>
- <script type="text/javascript"
- src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
- </script>
- </div>
- <div id="content-top"> </div>
- <div id="content-middle">
- <div id="random-image">
- <a href="random-music-and-video's/"><img src="images/random-image.png" title="Next Random Song!" alt="New Song!" /></a>
- </div>
- <div id="image-music"></div>
- <div id="logo">
- <a href="random-music-and-video's/"><img src="images/logo.png" alt="Tracksandclips" /></a>
- </div>
- <div id="song">
- <h3><span id="videoInfo"></span>
- <a href="javascript:socialMedia('facebook');"><img src="images/facebook-icon.png" alt="Facebook" title="Facebook" border="0"/></a>
- <a href="javascript:socialMedia('twitter');"><img src="images/twitter-icon.gif" alt="Twitter" title="Twitter" border="0"/></a>
- </h3>
- </div>
- <div id="linker-buttons">
- <ul id="genres-links">
- <li><a href="http://www.tracksandclips.com/golden-oldies/">Golden Oldies</a></li>
- <li><a href="http://www.tracksandclips.com/90's/">90's</a></li>
- <li><a href="http://www.tracksandclips.com/zeroes/">Zeroes</a></li>
- <li><a href="http://www.tracksandclips.com/top-40/">Top 40</a></li>
- <li><a href="http://www.tracksandclips.com/hip-hop/">Hip Hop</a></li>
- <li><a href="http://www.tracksandclips.com/dance/">Dance</a></li>
- <li><a href="http://www.tracksandclips.com/rock/">Rock</a></li>
- <li><a href="http://www.tracksandclips.com/jazz/">Jazz</a></li>
- <li><a href="http://www.tracksandclips.com/blues/">Blues</a></li>
- <li><a href="http://www.tracksandclips.com/classical/">Classical</a></li>
- </ul>
- <img onclick="javascript:showInlinePage('verstuur_report.php','500','500')" title="Error in video!" src="http://www.tracksandclips.com/images/error-image.png" width="43" height="44" border="0"/>
- <img onclick="javascript:showInlinePage('verstuur_request.php','500','500')" title="Reguest a song!" src="http://www.tracksandclips.com/images/wdyw-image.png" width="43" height="44" border="0"/>
- <img onclick="javascript:repeatSong('Image','http://www.tracksandclips.com/images/repeat-image.png','http://www.tracksandclips.com/images/repeat-image-on.png');" title="Video Repeat On/Off" id="Image" src="http://www.tracksandclips.com/images/repeat-image.png" width="43" height="44" border="0"/>
- </div>
- <div id="MusicPlayer"></div>
- <div id="rechter-buttons">
- <ul id="genres-rechts">
- <li><a href="http://www.tracksandclips.com/latin/">Latin</a></li>
- <li><a href="http://www.tracksandclips.com/pop/">Pop</a></li>
- <li><a href="http://www.tracksandclips.com/reggae/">Reggae</a></li>
- <li><a href="http://www.tracksandclips.com/soul/">Soul</a></li>
- <li><a href="http://www.tracksandclips.com/country/">Country</a></li>
- <li><a href="http://www.tracksandclips.com/big-band/">Big Band</a></li>
- <li><a href="http://www.tracksandclips.com/summer-hits/">Summer Hits</a></li>
- <li><a href="http://www.tracksandclips.com/kids/">Kids</a></li>
- <li><a href="http://www.tracksandclips.com/christmas/">Christmas</a></li>
- <li><a href="http://www.tracksandclips.com/sing-and-songwriter/">Sing And Songwriter</a></li>
- </ul>
- <img onclick="javascript:playPreviousSong();" title="Back" src="http://www.tracksandclips.com/images/back-image.png" width="42" height="44" border="0" />
- <img onclick="javascript:pauseVideo('http://www.tracksandclips.com/images/pause-image.png','http://www.tracksandclips.com/images/pause-image-on.png','Image9');" title="Pause/Play" id="Image9" src="http://www.tracksandclips.com/images/pause-image.png" width="42" height="44" border="0" />
- <img onclick="javascript:loadPlayer();" title="F$#k this song! Next!" src="images/next-image.png" width="42" height="44" border="0" />
- </div>
- <div id="facebooklike">
- <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftracksandclips.com&layout=standard&show_faces=true&width=450&action=like&font=verdana&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
- </div>
- <div id="twitter">
- <a href="http://twitter.com/#!/stefdevnl" target="_blank"><img src="images/twitter.png" title="Follow Us On Twitter!" width="180" height="60" border="0" /></a>
- </div>
- </div>
- <div id="content-bottom"> </div>
- <div id="googlead">
- <script type="text/javascript"><!--
- google_ad_client = "pub-2551796150259317";
- /* 468x60, created 4/11/11 */
- google_ad_slot = "6973400481";
- google_ad_width = 468;
- google_ad_height = 60;
- //-->
- </script>
- <script type="text/javascript"
- src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
- </script>
- </div>
- <div>
-
-
-
- </div>
- <div id="content-text">
- </p>
- </p>
- <h1>Music Portal</h1>
- Tracks and clips.com is a music portal with all categories playing random hits.
- On the main page you'll find many styles of music mixed together for you to enjoy your daily music needs. You can also play any category you like by clicking on the category you wish. Always random the best new hits en best oldies all time!
- </p>
- <h2>Tracks</h2>
- The best tracks in all history. We sort all tracks ever made and we’ve placed the best hits ever recorded into one music portal for every age. If you have suggestions for your favorite tracks, you can suggest them by mail form! If you don’t like the track you hear you can simply click on the next button. See tracksandclips as an mood agent. Click on the category fitting your current mood and you will experience a surprisingly good music flow.
- </p>
- <h2>Clips</h2>
- With every track there is a clip. Sometimes music video clips and sometimes a clip without the video. We add the clips with the best quality of music for an optimal experience.
- There even are clips with a lyric so you can finally understand that one word you’ve always wondered what it was or just to sing along an oldie. If you’ve noticed a better clip you can contact us so we can upload this.
- </p>
- <h2>Random music</h2>
- Tracksandclips plays random music in every category on the index page. We pick the best hits in almost every category and place this on our home page. For more specified random music you can click the category you like. The fun of listening to random music is the surprise factor. Because every song you hear is a hit, it’s most likely you know every song and if not it’s time to know the song! Tracks and clips random music and video’s wishes you a great time on this website!
- </div>
- <div id="copyright"> ©<?php echo date(Y) ?> <a href="http://tracksandclips.com" target="_blank">Tracksandclips.com</a> - info@tracksandclips.com - Hosted by: <a href="http://www.stefdev.nl" target="_blank">StefDev.nl</a></div>
- </div>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement