borgqueenx
Active member
Hello everyone, i use TSviewer on my website, and would like to build in an auto-refresh function.
the following code is the html embed function. how do i include auto refresh in it? as you can see i tried something at the end of the code, but this just refreshes my whole site/page instead of the script.
the following code is the html embed function. how do i include auto refresh in it? as you can see i tried something at the end of the code, but this just refreshes my whole site/page instead of the script.
Code:
<div id="ts3viewer_1071673" style="width:; background-color:;"> </div>
<script type="text/javascript" src="https://static.tsviewer.com/short_expire/js/ts3viewer_loader.js"></script>
<script type="text/javascript">
<!--
var ts3v_url_1 = "https://www.tsviewer.com/ts3viewer.php?ID=1071673&text=000000&text_size=12&text_family=1&js=1&text_s_color=49b425&text_s_weight=bold&text_s_style=normal&text_s_variant=normal&text_s_decoration=none&text_s_color_h=cfcc1d&text_s_weight_h=bold&text_s_style_h=normal&text_s_variant_h=normal&text_s_decoration_h=underline&text_i_color=49b425&text_i_weight=normal&text_i_style=normal&text_i_variant=normal&text_i_decoration=none&text_i_color_h=cfcc1d&text_i_weight_h=normal&text_i_style_h=normal&text_i_variant_h=normal&text_i_decoration_h=underline&text_c_color=49b425&text_c_weight=normal&text_c_style=normal&text_c_variant=normal&text_c_decoration=none&text_c_color_h=cfcc1d&text_c_weight_h=normal&text_c_style_h=normal&text_c_variant_h=normal&text_c_decoration_h=underline&text_u_color=49b425&text_u_weight=bold&text_u_style=normal&text_u_variant=normal&text_u_decoration=none&text_u_color_h=cfcc1d&text_u_weight_h=bold&text_u_style_h=normal&text_u_variant_h=normal&text_u_decoration_h=none";
ts3v_display.init(ts3v_url_1, 1071673, 100);
function autoRefresh1()
{
window.location.reload();
}
setInterval('autoRefresh1()', 5000);
-->
</script>