Hey guys, I'm trying to get something to work on my website and need a little help. I'm trying to put an image on my page next to a gamers name. If that gamer is not live streaming, it shows one image, and when he is live streaming, it changes images. (So people know he's currently online) I found a site doing it already and I can't quite figure out how to make the image automatically change when they go online to stream.
Live Stream Embedding Question
12
Hey guys, I'm trying to get something to work on my website and need a little help. I'm trying to put an image on my page next to a gamers name. If that gamer is not live streaming, it shows one image, and when he is live streaming, it changes images. (So people know he's currently online)
I found a site doing it already and I can't quite figure out how to make the image automatically change when they go online to stream.
Here is an image of the site doing it. When the gamer is offline, they have the red dot and it will automatically switch to the green dot when they come online. (Example, Guardsman Bob is currently online streaming)
I looked at the coding and found this: (Only showing 2 of the links to avoid spamming with code)
<div id="video_container">
<div class="container_12"><p>
<div class="grid_14 picks">
<ul><img alt="League of Legends" src="http://www.warriorforum.com/assets/img/icon_lol.png"><br><br>
<img alt="offline" src="http://www.warriorforum.com/assets/img/offline.png"><a href="http://www.athenelive.com/o/?s=13576"> bigfatlp</a><br>
<img alt="online" src="http://www.warriorforum.com/assets/img/online.png"><a href="http://www.athenelive.com/o/?s=34046"> Guardsman Bob</a><br>
</ul>
So all i see is the img link (to either offline or online) and the ahref tag to the stream.
Any ideas how to automatically switch out the image for offline/online?
Thanks guys.
</div>
I found a site doing it already and I can't quite figure out how to make the image automatically change when they go online to stream.
Here is an image of the site doing it. When the gamer is offline, they have the red dot and it will automatically switch to the green dot when they come online. (Example, Guardsman Bob is currently online streaming)
I looked at the coding and found this: (Only showing 2 of the links to avoid spamming with code)
<div id="video_container">
<div class="container_12"><p>
<div class="grid_14 picks">
<ul><img alt="League of Legends" src="http://www.warriorforum.com/assets/img/icon_lol.png"><br><br>
<img alt="offline" src="http://www.warriorforum.com/assets/img/offline.png"><a href="http://www.athenelive.com/o/?s=13576"> bigfatlp</a><br>
<img alt="online" src="http://www.warriorforum.com/assets/img/online.png"><a href="http://www.athenelive.com/o/?s=34046"> Guardsman Bob</a><br>
</ul>
So all i see is the img link (to either offline or online) and the ahref tag to the stream.
Any ideas how to automatically switch out the image for offline/online?
Thanks guys.
</div>
- Lovelogic
- [ 1 ] Thanks
- Nochek
- [ 1 ] Thanks
- oldwarrioruser1
- Lovelogic
- [ 1 ] Thanks
- oldwarrioruser1
- Lovelogic
- [ 1 ] Thanks
- [1] reply
- oldwarrioruser1
- oldwarrioruser1
- Lovelogic
- [ 1 ] Thanks
Next Topics on Trending Feed
-
12