• 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)
  • Thread Starter Nozama

    (@nozama)

    I’m actually unable to open any links in the iframe much less the two of them in different iframes. It appears to refresh the page but the original src doesn’t change.

    I think that there might be a problem with the jquery package you are having. Please update it to the latest using header.php of theme file and fetch it from CDN

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘One link two iframes changing twitch content’ is closed to new replies.