One link two iframes changing twitch content
-
My goal is to get the video and chat window to change within the iframes upon link click but it doesn’t seem to be working. I promise I’ve looked quite a bit trying to solve this on my own and tried many solutions.
The below seems like the correct solution but it’s not working and I’m not sure where to go from here.
Any help would be greatly appreciated.
<head> <script type="text/javascript"> function twoFrameChange(video,chat){ top.twitch_embed.location.href = video; top.chat_embed.location.href = chat; } </script> </head> <iframe name="twitch_embed" src="http://www.twitch.tv/clanaodtv/embed" width="896" height="504" frameborder="0"></iframe><iframe name="chat_embed" src="http://twitch.tv/chat/embed?channel=clanaodtv&popout_chat=true" width="896" height="400" frameborder="0"></iframe> <a href="javascript:twoFrameChange('http://twitch.tv/ClanAODTV','http://twitch.tv/ClanAODTV');"><img src="http://streambadge.com/twitch/dark/ClanAODTV.png" width="300" height="64" alt="ClanAODTV's Streambadge"></a> <a href="javascript:twoFrameChange('http://twitch.tv/AOD_NewColossus','http://twitch.tv/AOD_NewColossus');"><img src="http://streambadge.com/twitch/dark/aod_newcolossus.png" width="300" height="64" alt="AOD_NewColossus's Streambadge"></a>
clanaod.tv
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘One link two iframes changing twitch content’ is closed to new replies.