collapse

Author Topic: Added a html portal box and by buttons disappeared?  (Read 51 times)

0 Members and 1 Guest are viewing this topic.

Offline VintageJetBoats

  • Practiced
  • *
  • Posts: 71
  • OS:
  • Windows VistaWindows Vista
  • Browser:
  • Chrome 7.0.517.44Chrome 7.0.517.44
    • View Profile
Added a html portal box and by buttons disappeared?
« on: December 01, 2010, 11:36:02 AM »
On my portal page at www.vintagejetboats.com I added an html box with the following code for youtube videos and somehow it disables my buttons on the top of the page.
Any ideas on what the problem with this code might be?

I am using this
 
   <img src='http://img.youtube.com/vi/a3aj2ZEzmtk/1.jpg' width='130' height='97' border='0' class="yt-img" alt='a3aj2ZEzmtk' title='Video screenshot' /> <img src='http://img.youtube.com/vi/4TLX9EHRQyk/2.jpg' width='130' height='97' border='0' class="yt-img" alt='4TLX9EHRQyk' title='Video screenshot' /> <img src='http://img.youtube.com/vi/0r_ajyFyRAc/3.jpg' width='130' height='97' border='0' class="yt-img" alt='0r_ajyFyRAc' title='Custom title' /><br /><br />
<iframe id='youtube-player' type='text/html' width='640' height='385' src='http://www.youtube.com/embed/oGyk8xBVQIE' frameborder='0'></iframe>   
    <script type="text/javascript" src="http://www.google.com/jsapi"></script>
    <script type="text/javascript">
      google.load("jquery", "1.4.4");
      google.setOnLoadCallback(function() {
          $('.yt-img').bind('click', function(event) {
            newurl = "http://www.youtube.com/embed/" + $(this).attr("alt");
            $("#youtube-player").attr("src",newurl);
          });
      });
    </script>
 
Shortie's Ultimate PlayRoom | RC3 | Simple Portal | Aeva Gallery

Offline VintageJetBoats

  • Practiced
  • *
  • Posts: 71
  • OS:
  • Windows VistaWindows Vista
  • Browser:
  • Chrome 7.0.517.44Chrome 7.0.517.44
    • View Profile
Re: Added a html portal box and by buttons disappeared?
« Reply #1 on: December 04, 2010, 01:19:55 PM »
Ok so I got it fixed up and it's working but, for some reason it's not randomizing. When I use the code on a regular web page like this one www.vintagejetboats.com/jeffindex.php it will bring up random videos each time. Is the something with the cache that's not allowing it to do the randomizing?

<img src='http://img.youtube.com/vi/axmIZnLAgpU/1.jpg' width='130' height='97' border='0' class="yt-img" alt='axmIZnLAgpU' title='Video screenshot' /> <img src='http://img.youtube.com/vi/0r_ajyFyRAc/2.jpg' width='130' height='97' border='0' class="yt-img" alt='0r_ajyFyRAc' title='Video screenshot' /> <img src='http://img.youtube.com/vi/vt4RltoZFNM/3.jpg' width='130' height='97' border='0' class="yt-img" alt='vt4RltoZFNM' title='Custom title' /><br /><br />
<iframe id='youtube-player' type='text/html' width='640' height='385' src='http://www.youtube.com/embed/a3aj2ZEzmtk' frameborder='0'></iframe>   
        <script type="text/javascript">
     $(document).ready(function() {
          $('.yt-img').bind('click', function(event) {
            newurl = "http://www.youtube.com/embed/" + $(this).attr("alt");
            $("#youtube-player").attr("src",newurl);
          });
      });
    </script>
Shortie's Ultimate PlayRoom | RC3 | Simple Portal | Aeva Gallery

 


* Search



* Latest Activity.

Icon request by VintageJetBoats
[Yesterday at 02:03:37 PM]


December 2010 Uptop Logo Contest by NerdBoy
[Yesterday at 09:15:14 AM]


Nerdboy's Birthday by NerdBoy
[Yesterday at 06:02:44 AM]


A GM Wallpaper by NerdBoy
[December 06, 2010, 09:42:36 PM]


Logo request by NerdBoy
[December 06, 2010, 05:20:44 PM]


Happy Birthday Shortie by MJCSD
[December 05, 2010, 08:48:02 PM]


Added a html portal box and by buttons disappeared? by VintageJetBoats
[December 04, 2010, 01:19:55 PM]


Post Ratings 1.5 by spoogs
[December 04, 2010, 07:00:56 AM]


Logo request by NerdBoy
[December 03, 2010, 08:31:23 AM]


Ultimate Weather by NerdBoy
[November 30, 2010, 05:05:51 PM]


General Wallpapers by Witcher
[November 30, 2010, 10:00:41 AM]


November 2010 Graphics Mayhem Wallpapers by NerdBoy
[November 29, 2010, 06:42:28 PM]


2 logo requests by NerdBoy
[November 29, 2010, 02:27:33 PM]


How do I fix this? Hard to read quotes? by VintageJetBoats
[November 27, 2010, 09:54:12 PM]