Go Back   Winamp & SHOUTcast Forums > Winamp > Winamp Technical Support

View Poll Results: are you experiencing the same problem?
Yes. exactly the same. 0 0%
Yes. almost the same problem. 1 50.00%
No. works fine. 1 50.00%
Multiple Choice Poll. Voters: 2. You may not vote on this poll

Reply
Thread Tools Search this Thread Display Modes
Old 24th October 2005, 03:53   #1
Abraxias
Junior Member
 
Join Date: Oct 2005
Posts: 7
my Winamp crashes after switching from SHOUTcast Radio to Winamp Video

I dunno, if this is a bug…

but, I believe, since Winamp 5.09 (I don't recall having this problem prior to 5.09):

if I load my Winamp from Flashback Alternatives, and then later try to watch a Winamp Video, my Winamp crashes after the commercial plays and the actual video tries to play.

can others test; to see if it's just me having this problem?

thanks!
Abraxias is offline   Reply With Quote
Old 24th October 2005, 17:42   #2
siebe83
Forum King
 
siebe83's Avatar
 
Join Date: Feb 2004
Posts: 9,224
Does this happen on a clean install of the latest version of Winamp (i.e. Winamp 5.11)?

If that doesn't help, please provide more info (read this!), i.e. any error messages, system specs, settings under Prefs > Video, etc...

Good Winamp plugins by Joonas, DrO and shaneh.
If you're bored go here or, if the boredom is more serious, here.
siebe83 is offline   Reply With Quote
Old 24th October 2005, 18:15   #3
Abraxias
Junior Member
 
Join Date: Oct 2005
Posts: 7
did the "clean uninstall"

the same problem persists.

it plays the video BUT I get the "Just-In-Time Debugging" error AFTER the commercial. BUT, if it doesn't play the commercial, I don't get the error. the video starts in 1/4-1/2 the size of a thumbnail but I can always enlarge (Fullscreen or Maximum Window, etc. modes) it without any problems.

the problem happens, if I get a commercial and AFTER it plays the commercial BEFORE it plays the actual video. it seems to be some sort of transition error AFTER a commercial and BEFORE the music video. otherwise, I can play the video fine, if I ignore the error. however, the error is on an endless loop. everytime I exit it, it pops-up immediately.

I don't understand what the error is, but here's a copy of it:
(don't know, if this helps, but the green text is where the yellow arrow points to with MS Script Editor)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Ad Curtain</title>

<link rel="stylesheet" href="/inc/default.css" type="text/css">

<style type="text/css" media="screen">
body {
margin: 0px;
padding: 0px;
border: 0px;
scrollbars: none;
overflow: hidden;
}

/* curtain layers */
.ad {
position: absolute;
left: 0px;
bottom: 0px;
padding: 0px;
margin: 0px;
border: 0px;
}
#div_context {
position: absolute;
left: 5px;
top: 5px;
padding: 0px;
margin: 0px;
border: 0px;
width: 290px;
height: 180px;
overflow: hidden;
}
#div_llama {
position: absolute;
left: 0px;
bottom: 0px;
width: 300px;
height: 60px;
}
#div_main {
margin: 0px;
padding: 5px;
border: 0px;
width: 100%;
height: 143px;
}
.wa_logo {
margin: 0px;
padding: 2px;
border: 0px;
width: 100%;
}
.clearer {
margin: 0px;
padding: 0px;
width: 100%;
height: 0px;
clear: both;
overflow: hidden;
}

/* fonts */
body, p, #div_context, .tiny {
font-family: verdana, arial, helvetica;
font-size: 11px;
}
.tiny {
font-size: 10px;
}
</style>

<script language="Javascript">

<!--
/*
** globals
*/
var collapse_count = 0;

// flash commands
var CURTAIN_EXPAND = 1;
var CURTAIN_COLLAPSE = 2;

/*
** winamp javascript: api stuff
*/
function onCommand(cmd, param){
if(param){
document.auditer.location.replace(param);
}
switch(cmd){
case CURTAIN_EXPAND:
expandMotif(); break;
case CURTAIN_COLLAPSE:
collapseMotif(); break;
default:
break;
}
}


/*
** flash interface functions
*/
var g_MotifId = 0;
function registerMotifObjId(id) {
g_MotifId = id;
g_MotifFlashEnabled = true;
expandMotif();
}
function expandMotif() {
var flash = document.getElementById("FLASH_" + g_MotifId);
flash.TGotoLabel("/", "expanding");
flash.Play();
}
function collapseMotif() {
var flash = document.getElementById("FLASH_" + g_MotifId);
flash.TGotoLabel("/", "collapsing");
flash.Play();
}


/*
** disable right click
*/
function clickCheckIE(){
if(document.all){
return false;
}
}
function clickCheckNS(e) {
if (document.layers || (document.getElementById && !document.all)){
if (e.which > 1) {
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = clickCheckNS;
}else{
document.onmouseup = clickCheckNS;
document.oncontextmenu = clickCheckIE;
}
document.oncontextmenu = new Function("return false");

//-->
</script>

</head>

<body ondragstart="return false" onselectstart="return false">

<div id="omnitureCode" name="omnitureCode" style="position: absolute; left: -100px; top: -100px;">

<!-- SiteCatalyst code version: G.9.
Copyright 1997-2004 Omniture, Inc. More info available at http://www.omniture.com
-->
<script language="JavaScript">
<!--

function fParseQS(QSP){var param;var a_params=document.location.href.split("?");if (a_params.length>1){a_params=a_params[1].split("&")}if(a_params.length>0){ for (p=0;p<a_params.length;p++){param=a_params[p].split("="); if(param[0].toLowerCase()==QSP.toLowerCase()){return param[1]}}}}

var s_account="aolwinamp,aolsvc";var s_linkInternalFilters="javascript:,aol.com,shoutcast.com";

var s_pfxID="wna";
var s_pageName=s_pfxID + " : " + "Media Contextual Window";
var s_server="waweb-dtc1l-1.winamp.com";
var s_channel="us.winamp";
var s_pageType="";
var s_prop1="Winamp Player"; // department
var s_prop2="Media Contextual Window"; // sub-department
var s_prop3=""; // country
var s_prop12="http://www.winamp.com/bin/context.php?pmmsid=1325531&wid=WA-1A751D3A70F3423FB58F4ABB9EC38A59&uuid=&dc=http%3A%2F%2Ftwx.doubleclick.net%2Fadj%2Ftw.winamp.us.vac%2Fmus_music_videos%3Bvid%3D22001337%3Bsz%3D300x60%3Bord%3D3337208%3F&mtype_full=videos&aud=http%3A%2F%2Fstats.lightningcast.net%2Fservlets%2Faudit%3Fj s%3Dt%26version%3D6.0%26ioId%3D9348%26creativeId%3D11967%26contentId%3D26981%26streamId%3D6499%26fr%3D1130177074245%26aoldata%3Dadurl%3A%252Faol%252Fus%252Fads%252Fmovies%252Fbatmanegins_30sec_ad%253Bbitrates%253A700%252C460%252C320%252C120%252C28%2C uid%3A%2CtplateId%3A1328%2Cbrand%3Awinamp%2Crqtime%3A1130177073677"; // query string (will need to strip out session id, topic id, post id, etc. but may need to keep for things like predixis)
//-->
</script>

<!-- For secure pages be sure to point to https://s.aolcdn.com/omniuni.js-->
<script language="JavaScript" src="http://o.aolcdn.com/omniuni.js"></script>

<script language="JavaScript">
<!--
/********* CODE FOR FLASH BELOW ************/
s_ca(s_account);
function sendAnalyticsEvent(str){
ns=s_account; if(str!=null)ns+=","+str;void(s_gs(ns));}
function sendLinkEvent(str,lnkname){
ns=s_account; if(str!=""&&str!=null)ns+=","+str; s_linkType="o"; s_lnk=true; s_linkName=lnkname; void(s_gs(ns));}
//-->
</script>
<!-- End SiteCatalyst code version: G.9. -->
</div>

<div id="div_context" class="ltgrey-bg">
<div id="div_wa_logo" class="wa_logo">
<table cellspacing=0 cellpadding=0 border=0 width="100%">
<tr>
<td><a href="http://www.winamp.com/" target="_blank"><img src="/images/misc/winamp_small.gif" width="131" height="33" border="0"></a></td>
<td align="right"><img src="/images/misc/aol_music_context.gif" width="77" height="16" border="0">&nbsp;</td>
</tr>
</table>
</div>
<div id="div_main" class="white-bg">
<a href="http://www.winamp.com/videos/artist.php?id=5017" target="_blank"><img src="http://cdn.digitalcity.com/amgmusic/artists/pic200/drp400/p415/p41562zhvt1.jpg" border="0" align="right" width="125"></a>
<!-- pmmsid: 1325531 5017 -->
<b>'Krafty'</b><br/>
<div class="small">
by <a href="http://www.winamp.com/videos/artist.php?id=5017" target="_blank" class="black">New Order</a><br/><br/>
<a href="http://www.winamp.com/videos/artist.php?id=5017" target="_blank">More by New Order</a><br/>
<a href="http://aolshop.com/redirect/inbound_redirect.jsp?redirectType=1&amgID=R%2520%2520%2520734334&referralID=011020" target="_blank">Buy this album</a>
</div>
</div>
</div>



<iframe name="auditer" id="auditer" style="position: absolute; left: -5px; top: -5px; border: 0px; width: 1px; height: 1px; overflow: hidden;" src="http://stats.lightningcast.net/servlets/audit?js=t&version=6.0&ioId=9348&creativeId=11967&contentId=26981&streamId=6499&fr=1130177074245&aoldata=adurl:%2Faol%2Fus%2Fads%2Fmovies%2Fbatmanegins_30sec_ad%3Bbitrates%3A700%2C460%2C320%2C120%2C28,uid:,tplateId:1328,brand:winamp,rqtime:1130177073 677"></iframe>

<div id="div_ad" class="ad" style="display: block;">
<script src="http://twx.doubleclick.net/adj/tw.winamp.us.vac/mus_music_videos;vid=22001337;sz=300x60;ord=3337208?"></script>
</div>

</body>
</html>

Last edited by Abraxias; 24th October 2005 at 19:23.
Abraxias is offline   Reply With Quote
Old 24th October 2005, 19:42   #4
DJ Egg
Techorator
Winamp & SHOUTcast Team
 
Join Date: Jun 2000
Posts: 35,773
What's your Windows OS?
What version of Internet Explorer?
Is Flash installed?
Any chance of seeing a HijackThis log so we can see a list of startup items and concurrently running processes?
I've a feeling it's some security program/setting to blame.
DJ Egg is online now   Reply With Quote
Old 24th October 2005, 19:43   #5
taber
Winamp Team
 
taber's Avatar
 
Join Date: Sep 1978
Location: Winamp HQ
Posts: 1,358
Are you using any ad blocking software? Looks like it can't reference the embedded flash ad.

WINAMP
taber is offline   Reply With Quote
Old 24th October 2005, 20:23   #6
Abraxias
Junior Member
 
Join Date: Oct 2005
Posts: 7
OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 2 Build 2600
OS Manufacturer Microsoft Corporation
System Name SATELLITE-2805
System Manufacturer TOSHIBA
System Model Satellite 2805
System Type X86-based PC
Processor x86 Family 6 Model 8 Stepping 10 GenuineIntel ~847 Mhz
BIOS Version/Date TOSHIBA Version 1.30, 2/26/2001
SMBIOS Version 2.3
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)"
Total Physical Memory 384.00 MB
Available Physical Memory 115.07 MB
Total Virtual Memory 2.00 GB
Available Virtual Memory 1.96 GB
Page File Space 923.94 MB
Page File C:\pagefile.sys

Internet Explorer Version: 6.0.2900.2180.xpsp_sp2_gdr.050301-1519

Flash Player Version 8,0,22,0

I don't have hijackthis installed.

I don't have ANY antivirus nor antispyware installed. despite not having ANY antivirus or antispyware installed, I know that my laptop is clean.

I don't use ANY ad blocking software.

it plays the commercial BUT it gets into some sort of script error AFTER playing the commercial.

I don't use ANY 3rd party plug-ins for my Winamp.

btw: this is a new script error right AFTER the commercial:

onCommand(2,"http://twx.doubleclick.net/imp;v3;x;22001337;0-0;0;11131329;0|0;12613951|12631847|1;;cs=h%3fhttp://twx.2mdn.net/1031559/dot_clear.gif");

Last edited by Abraxias; 24th October 2005 at 22:01.
Abraxias is offline   Reply With Quote
Old 25th October 2005, 07:25   #7
Abraxias
Junior Member
 
Join Date: Oct 2005
Posts: 7
here's another script error:
(the green text is where the yellow arrow points to. I noticed that it also has something to do with "collapse" just like the 1st script error I posted. not sure, if there's a significance to it.)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Ad Curtain</title>

<link rel="stylesheet" href="/inc/default.css" type="text/css">

<style type="text/css" media="screen">
body {
margin: 0px;
padding: 0px;
border: 0px;
scrollbars: none;
overflow: hidden;
}

/* curtain layers */
.ad {
position: absolute;
left: 0px;
bottom: 0px;
padding: 0px;
margin: 0px;
border: 0px;
}
#div_context {
position: absolute;
left: 5px;
top: 5px;
padding: 0px;
margin: 0px;
border: 0px;
width: 290px;
height: 180px;
overflow: hidden;
}
#div_llama {
position: absolute;
left: 0px;
bottom: 0px;
width: 300px;
height: 60px;
}
#div_main {
margin: 0px;
padding: 5px;
border: 0px;
width: 100%;
height: 143px;
}
.wa_logo {
margin: 0px;
padding: 2px;
border: 0px;
width: 100%;
}
.clearer {
margin: 0px;
padding: 0px;
width: 100%;
height: 0px;
clear: both;
overflow: hidden;
}

/* fonts */
body, p, #div_context, .tiny {
font-family: verdana, arial, helvetica;
font-size: 11px;
}
.tiny {
font-size: 10px;
}
</style>

<script language="Javascript">

<!--
/*
** globals
*/
var collapse_count = 0;

// flash commands
var CURTAIN_EXPAND = 1;
var CURTAIN_COLLAPSE = 2;

/*
** winamp javascript: api stuff
*/
function onCommand(cmd, param){
if(param){
document.auditer.location.replace(param);
}
switch(cmd){
case CURTAIN_EXPAND:
expandMotif(); break;
case CURTAIN_COLLAPSE:
collapseMotif(); break;
default:
break;
}
}


/*
** flash interface functions
*/
var g_MotifId = 0;
function registerMotifObjId(id) {
g_MotifId = id;
g_MotifFlashEnabled = true;
expandMotif();
}
function expandMotif() {
var flash = document.getElementById("FLASH_" + g_MotifId);
flash.TGotoLabel("/", "expanding");
flash.Play();
}
function collapseMotif() {
var flash = document.getElementById("FLASH_" + g_MotifId);
flash.TGotoLabel("/", "collapsing");
flash.Play();
}


/*
** disable right click
*/
function clickCheckIE(){
if(document.all){
return false;
}
}
function clickCheckNS(e) {
if (document.layers || (document.getElementById && !document.all)){
if (e.which > 1) {
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = clickCheckNS;
}else{
document.onmouseup = clickCheckNS;
document.oncontextmenu = clickCheckIE;
}
document.oncontextmenu = new Function("return false");

//-->
</script>

</head>

<body ondragstart="return false" onselectstart="return false">

<div id="omnitureCode" name="omnitureCode" style="position: absolute; left: -100px; top: -100px;">

<!-- SiteCatalyst code version: G.9.
Copyright 1997-2004 Omniture, Inc. More info available at http://www.omniture.com
-->
<script language="JavaScript">
<!--

function fParseQS(QSP){var param;var a_params=document.location.href.split("?");if (a_params.length>1){a_params=a_params[1].split("&")}if(a_params.length>0){ for (p=0;p<a_params.length;p++){param=a_params[p].split("="); if(param[0].toLowerCase()==QSP.toLowerCase()){return param[1]}}}}

var s_account="aolwinamp,aolsvc";var s_linkInternalFilters="javascript:,aol.com,shoutcast.com";

var s_pfxID="wna";
var s_pageName=s_pfxID + " : " + "Media Contextual Window";
var s_server="waweb-ntc0l-2.winamp.com";
var s_channel="us.winamp";
var s_pageType="";
var s_prop1="Winamp Player"; // department
var s_prop2="Media Contextual Window"; // sub-department
var s_prop3=""; // country
var s_prop12="http://www.winamp.com/bin/context.php?pmmsid=1129560&wid=WA-1A751D3A70F3423FB58F4ABB9EC38A59&uuid=&dc=http%3A%2F%2Ftwx.doubleclick.net%2Fadj%2Ftw.winamp.us.vac%2Fmus_music_videos%3Bvid%3D19120516%3Bsz%3D300x60%3Bord%3D7389215%3F&mtype_full=videos&aud=http%3A%2F%2Fstats.lightningcast.net%2Fservlets%2Faudit%3Fj s%3Dt%26version%3D6.0%26ioId%3D9348%26creativeId%3D11967%26contentId%3D26981%26streamId%3D6499%26fr%3D1130221004277%26aoldata%3Dadurl%3A%252Faol%252Fus%252Fads%252Fbengay%252Fbengay_15spot_ad%253Bbitrates%253A700%252C460%252C320%252C120%252C28%2Cuid% 3A%2CtplateId%3A1328%2Cbrand%3Awinamp%2Crqtime%3A1130221004215"; // query string (will need to strip out session id, topic id, post id, etc. but may need to keep for things like predixis)
//-->
</script>

<!-- For secure pages be sure to point to https://s.aolcdn.com/omniuni.js-->
<script language="JavaScript" src="http://o.aolcdn.com/omniuni.js"></script>

<script language="JavaScript">
<!--
/********* CODE FOR FLASH BELOW ************/
s_ca(s_account);
function sendAnalyticsEvent(str){
ns=s_account; if(str!=null)ns+=","+str;void(s_gs(ns));}
function sendLinkEvent(str,lnkname){
ns=s_account; if(str!=""&&str!=null)ns+=","+str; s_linkType="o"; s_lnk=true; s_linkName=lnkname; void(s_gs(ns));}
//-->
</script>
<!-- End SiteCatalyst code version: G.9. -->
</div>

<div id="div_context" class="ltgrey-bg">
<div id="div_wa_logo" class="wa_logo">
<table cellspacing=0 cellpadding=0 border=0 width="100%">
<tr>
<td><a href="http://www.winamp.com/" target="_blank"><img src="/images/misc/winamp_small.gif" width="131" height="33" border="0"></a></td>
<td align="right"><img src="/images/misc/aol_music_context.gif" width="77" height="16" border="0">&nbsp;</td>
</tr>
</table>
</div>
<div id="div_main" class="white-bg">
<a href="http://www.winamp.com/videos/artist.php?id=142116" target="_blank"><img src="http://cdn.digitalcity.com/amgmusic/artists/pic200/editorOverwrite/200_409a7d77-00028-05a07-400cbb49" border="0" align="right" width="125"></a>
<!-- pmmsid: 1129560 142116 -->
<b>'Time Is Running Out'</b><br/>
<div class="small">
by <a href="http://www.winamp.com/videos/artist.php?id=142116" target="_blank" class="black">Muse</a><br/><br/>
<a href="http://www.winamp.com/videos/artist.php?id=142116" target="_blank">More by Muse</a><br/>
<a href="http://aolshop.com/redirect/inbound_redirect.jsp?redirectType=1&amgID=R%2520%2520%2520660812&referralID=011020" target="_blank">Buy this album</a>
</div>
</div>
</div>



<iframe name="auditer" id="auditer" style="position: absolute; left: -5px; top: -5px; border: 0px; width: 1px; height: 1px; overflow: hidden;" src="http://stats.lightningcast.net/servlets/audit?js=t&version=6.0&ioId=9348&creativeId=11967&contentId=26981&streamId=6499&fr=1130221004277&aoldata=adurl:%2Faol%2Fus%2Fads%2Fbengay%2Fbengay_15spot_ad%3Bbitrates%3A700%2C460%2C320%2C120%2C28,uid:,tplateId:1328,brand:winamp,rqtime:1130221004215" ></iframe>

<div id="div_ad" class="ad" style="display: block;">
<script src="http://twx.doubleclick.net/adj/tw.winamp.us.vac/mus_music_videos;vid=19120516;sz=300x60;ord=7389215?"></script>
</div>

</body>
</html>
Abraxias is offline   Reply With Quote
Old 29th October 2005, 22:10   #8
Abraxias
Junior Member
 
Join Date: Oct 2005
Posts: 7
got another script error to share, though don't know, if it's related:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<SCRIPT LANGUAGE="JavaScript1.1" SRC="http://ar.atwola.com/file/adsWrapper.js"></SCRIPT>

<style type="text/css" media="screen">
body {
padding: 0px;
margin: 5px;
scrollbars: none;
overflow: hidden;
}

td {
font-family: verdana, arial, helvetica;
font-size: 10px;
}

#money { /* 180 x 150 */
margin-left: 5px;
}

#container {
width: 100%;
height: 100%;
margin: 0px;
padding: 4px;
display: none;
}

#np_box {
margin-top: 4px;
height: 150px;
overflow: hidden;
}

#np_box_header {
font-weight: bold;
height: 24px;
padding: 8px;
font-family: verdana, arial, helvetica;
font-size: 11px;
}

#np_box_content {
margin-top: 2px;
padding: 8px;
font-family: verdana, arial, helvetica;
font-size: 11px;
}

#station_box {
font-family: verdana, arial, helvetica;
font-size: 12px;
margin-top: 4px;
padding: 8px;
}

#logo_box {
background-color: #ffffff; /* always white. (white is the background of the aol/xm logo pic) */
width: 100%;
margin: 0px;
padding: 0px;
overflow: hidden;
}

#bonus_links {
clear: all;
width: 100%;
font-family: verdana, arial, helvetica;
font-size: 10px;
}

#art {
background-color: #000000; /* always black - placeholder for channel/album art */
float: left;
width: 75px;
height: 75px;
overflow: hidden;
}

#track_info {
padding-left: 8px;
padding-right: 4px;
height: 77px;
float: left;
overflow: hidden;
}

#txt_station_desc {
font-family: verdana, arial, helvetica;
font-size: 10px;
}


/* text colors */
body, a, td, #np_box_header, #np_box_content, #station_box, #bonus_links, #track_info, #txt_station_desc, #artist_link, #song_link, #album_link {
color: #000000; /* ml column headers text */
}

/* background colors */
body { background-color: #000000; /* black on initial page load, before color data is received from winamp */ }
#container { background-color: #8E96A3; /* ml app bg */ }
#np_box_header, #np_box_content, #station_box { background-color: #CCD0D9; /* ml column headers bg */ }

</style>

<script language="Javascript">
<!--

/*
** globals
*/
var WADLG_ITEMBG = 0;
var WADLG_ITEMFG = 1;
var WADLG_WNDBG = 2;
var WADLG_BUTTONFG = 3;
var WADLG_WNDFG = 4;
var WADLG_HILITE = 5;
var WADLG_SELCOLOR = 6;
var WADLG_LISTHEADER_BGCOLOR = 7;
var WADLG_LISTHEADER_FONTCOLOR = 8;
var WADLG_LISTHEADER_FRAME_TOPCOLOR = 9;
var WADLG_LISTHEADER_FRAME_MIDDLECOLOR = 10;
var WADLG_LISTHEADER_FRAME_BOTTOMCOLOR = 11;
var WADLG_LISTHEADER_EMPTY_BGCOLOR = 12;
var WADLG_SCROLLBAR_FGCOLOR = 13;
var WADLG_SCROLLBAR_BGCOLOR = 14;
var WADLG_SCROLLBAR_INV_FGCOLOR = 15;
var WADLG_SCROLLBAR_INV_BGCOLOR = 16;
var WADLG_SCROLLBAR_DEADAREA_COLOR = 17;
var WADLG_SELBAR_FGCOLOR = 18;
var WADLG_SELBAR_BGCOLOR = 19;
var WADLG_INACT_SELBAR_FGCOLOR = 20;
var WADLG_INACT_SELBAR_BGCOLOR = 21;
var WADLG_NUM_COLORS = 22;

var WACALLBACK_SKIN = 0;
var WACALLBACK_INFO = 1;

var sArtistQueryUrl = "http://music.channel.aol.com/search/artistresults.adp?query="
var sSongQueryUrl = "http://music.channel.aol.com/search/songresults.adp?query="
var sAlbumQueryUrl = "http://music.channel.aol.com/search/albumresults.adp?query="
var sImageUrlBase = "http://broadband-albumart.music.aol.com/scan/";
var sInfoName = "Duran Duran Live";
var sInfoDesc = "AOL Music and Network Live present Duran Duran in concert from London, England.";
var sLiveImageUrl = "";
var sLiveStationUrl = "";
var sMagicAd = "93202022";
var update_timer = null;

var oWa = window.external;
var oWaBrowser = new Object();
var oWaSong = new Object();
var oWaSkin = new Object();
var sColorText;
var artImg = new Image();

/*
** onSkinCallback - called from winamp when a skin is changed
*/
function onSkinCallback() {
var sColorBgContainer = oWaSkin.GetColor(WADLG_LISTHEADER_BGCOLOR);
var sColorBgMain = sColorBgContainer;//oWaSkin.GetColor(WADLG_LISTHEADER_EMPTY_BGCOLOR);
var sColorBgContent = oWaSkin.GetColor(WADLG_ITEMBG);
sColorText = oWaSkin.GetColor(WADLG_ITEMFG);
var sColorBgChan = sColorBgContent;//oWaSkin.GetColor(WADLG_LISTHEADER_BGCOLOR);
var sColorTextChan = sColorText;//oWaSkin.GetColor(WADLG_LISTHEADER_FONTCOLOR);
var sColorBgNp = oWaSkin.GetColor(WADLG_INACT_SELBAR_BGCOLOR);
var sColorTextNp = oWaSkin.GetColor(WADLG_INACT_SELBAR_FGCOLOR);

// update background color
document.getElementById("body").style.background = sColorBgMain;
document.getElementById("container").style.background = sColorBgContainer;
document.getElementById("np_box_header").style.background = sColorBgNp;
document.getElementById("np_box_content").style.background = sColorBgContent;
document.getElementById("station_box").style.background = sColorBgChan;

// update text color
document.getElementById("body").style.color = sColorText;
document.getElementById("np_box_header").style.color = sColorTextNp;
document.getElementById("np_box_content").style.color = sColorText;
document.getElementById("station_box").style.color = sColorTextChan;
document.getElementById("bonus_links").style.color = sColorText;
for(var i=1; i<5; i++){
if ( document.getElementById("bonus_link_"+i) )
document.getElementById("bonus_link_"+i).style.color = sColorText;
}
document.getElementById("track_info").style.color = sColorText;
if ( document.getElementById("artist_info") ) {
document.getElementById("artist_info").style.color = sColorText;
document.getElementById("song_info").style.color = sColorText;
document.getElementById("album_info").style.color = sColorText;
}
document.getElementById("container").style.display = "block";
}

function onSkinCallbackDirect() {
oWaBrowser = oWa.Browser();
oWaBrowser.SetSize(531,256); // the minimum minibrowser component's size
onSkinCallback();
}

function loadedArt() {
document.getElementById("art").style.display = "block";
document.getElementById("art_img").src = artImg.src;
}

function errorArt() {
document.getElementById("art").style.display = "none";
//document.getElementById("art").innerHTML = "<img id=\"art_img\" src=" + sImageUrl + " border=0>";
}

function loadedLiveArt() {
document.getElementById("art").style.display = "block";
}

function errorLiveArt() {
document.getElementById("art").style.display = "none";
}

function updateSongInfo() {
var sArtist;
var sSong;
var sAlbum;

var iArtistId;
var iSongId;
var iAlbumId;

var sArtistUrl;
var sSongUrl;
var sAlbumUrl;

var sAlbumArt;
var sImageUrl;

var sSoon;

var songinfoxml = oWaSong.GetMetadata("0x3901");
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async = "false";

var myresult = xmlDoc.loadXML(songinfoxml);

document.getElementById("track_info").innerHTML = "";
document.getElementById("art").style.display = "none";
document.getElementById("bonus_links_l").innerHTML = "&nbsp;<br>&nbsp;";
document.getElementById("bonus_links_r").innerHTML = "&nbsp;<br>&nbsp;";

if ( myresult ) { // The XML was loaded ok!
var artist_nodes = xmlDoc.getElementsByTagName("artist");
var artists = artist_nodes.length;

if ( artists > 0 ) {
sArtist = xmlDoc.getElementsByTagName("artist")[0].firstChild.nodeValue;
sSong = xmlDoc.getElementsByTagName("name")[0].firstChild.nodeValue;
sAlbum = xmlDoc.getElementsByTagName("album")[0].firstChild.nodeValue;
sAlbumArt = xmlDoc.getElementsByTagName("album_art")[0].firstChild.nodeValue;
sSoon = xmlDoc.getElementsByTagName("soon")[0].firstChild.nodeValue;

//iArtistId = xmlDoc.getElementsByTagName("amg_artist_id")[0].firstChild.nodeValue;
//iSongId = xmlDoc.getElementsByTagName("amg_song_id")[0].firstChild.nodeValue;
//iAlbumId = xmlDoc.getElementsByTagName("amg_album_id")[0].firstChild.nodeValue;

space_regex = /\s/g;
if ( sArtist ) {
nArtist = sArtist.replace(space_regex,'+');
sArtistUrl = sArtistQueryUrl + nArtist;
}
if ( sSong ) {
nSong = sSong.replace(space_regex,'+');
sSongUrl = sSongQueryUrl + nSong;
}
if ( sAlbum ) {
nAlbum = sAlbum.replace(space_regex,'+');
sAlbumUrl = sAlbumQueryUrl + nAlbum;
}
if ( sAlbumArt ) {
sImageUrl = sImageUrlBase + sAlbumArt;
}

document.getElementById("track_info").innerHTML = "<b>Artist:</b>&nbsp;<a id=artist_info href=\"" + sArtistUrl + "\" target=_blank>" + sArtist + "</a><br>\n" +
"<b>Song:</b>&nbsp;<a id=song_info href=\"" + sSongUrl + "\" target=_blank>" + sSong + "</a><br>\n" +
"<b>Album:</b>&nbsp;<a id=album_info href=\"" + sAlbumUrl + "\" target=_blank>" + sAlbum + "</a>";

artImg.onload = loadedArt;
artImg.onerror = errorArt;
artImg.src = sImageUrl;

//document.getElementById("art").innerHTML = "<img id=\"art_img\" src=" + sImageUrl + " border=0>";
document.getElementById("station_box").innerHTML = "<b>" + sInfoName +"</b> - "+ sInfoDesc + "<br>";
if(sSoon){
document.getElementById("station_box").innerHTML += "<font size=-2><b>Coming Soon:</b> " + sSoon + "</font>";
}else{
document.getElementById("station_box").innerHTML += "&nbsp;";
}

document.getElementById("bonus_links_l").innerHTML = "<a href=\"http://aolshop.com/search/advanced_search.jsp?bmForm=aol_search&bmFormID=1124744610481&bmUID=1124744610481&bmIsForm=true&bmPrevTemplate=search%2Fadvanced_search.jsp&bmHidden=SEARCH_INPUT%3C%3EsearchType&SEARCH_INPUT%3C%3EsearchType=POP&bmSingle=ADVANCE_SEARCH%3C%3Eadvance_sea rch_in&ADVANCE_SEARCH%3C%3Eadvance_search_in=POP&bmText=SEARCH_INPUT%3C%3Eartist&SEARCH_INPUT%3C%3Eartist=&bmText=SEARCH_INPUT%3C%3EalbumTitle&SEARCH_INPUT%3C%3EalbumTitle=" +
escape(sAlbum) + "&bmText=SEARCH_INPUT%3C%3EsongTitle&SEARCH_INPUT%3C%3EsongTitle=&bmSingle=SEARCH_INPUT%3C%3EmusicGenre&SEARCH_INPUT%3C%3EmusicGenre=&bmDynamic=SEARCH_INPUT%3C%3EmusicGenre%3AAlternative+%26+Indie-Rock%3AAvant-Garde%3ABluegrass%3ABlues%3ACajun%3ACeltic%3AChildren%3AClassic+Rock+%26+Oldies%3AClassical%3AComedy%3ACountry%3ADance+%26+Electronica%3AEasy+Listening%3AEnvironmental%3AExercise%3AFolk%3AGay+%26+Lesbian%3AHard+Rock+%26+Metal%3AHoliday%3AInspirationa l%3AJazz%3ALatin%3AMarches%3AMiscellaneous%3ANew+Age%3APop%3AR%26B+%26+Soul%3ARap+%26+Hip-Hop%3AReggae%3ARock%3ASound+Effects%3ASoundtracks+%26+Musicals%3ASpoken+Word%3AVideo%3AVocal+Music%3AWomen%27s%3AWorld%3A&bmText=SEARCH_INPUT%3C%3ErecordLabel&SEARCH_INPUT%3C%3ErecordLabel=&bmSingle=SEARCH_INPUT%3C%3EmusicFormat&SEARCH_INPUT%3C%3Emus icFormat=&bmCheckbox=SEARCH_INPUT%3C%3Esoundtracks&bmCheckbox=SEARCH_INPUT%3C%3Ecollections&bmImage=submit.x&bmImage=submit.y&bmImage=submit&bmFields=bmForm%2CbmFormID%2CbmUID%2CbmIsForm%2CbmPrevTemplate%2CbmHidden%2CbmSingle%2CbmText%2CbmDynamic%2Cb mCheckbox%2CbmImage&bmHash=4dad7718d83225479769c44becbcb223fab52e69&submit.x=27&submit.y=9\" id=\"bonus_link_1\" target=_blank>Buy&nbsp;the&nbsp;CD</a><br>&nbsp;";

document.getElementById("bonus_links_r").innerHTML = "<a href=\"http://www.aolboxoffice.com/search.adp?brand=winamp&query=" +
sArtist + "\" id=\"bonus_link_2\" target=_blank>Buy&nbsp;Concert&nbsp;Tickets</a><br>&nbsp;";

// Swap Ad's around
document.getElementById("bannerAd").style.display = "none";
document.getElementById("flashAd").style.display = "block";


document.getElementById("artist_info").style.color = sColorText;
document.getElementById("song_info").style.color = sColorText;
document.getElementById("album_info").style.color = sColorText;

document.getElementById("bonus_link_1").style.color = sColorText;
document.getElementById("bonus_link_2").style.color = sColorText;

} else if( sLiveImageUrl ) { // a live station

document.getElementById("station_box").innerHTML = "<b>" + sInfoName +"</b><br>\n<font size=-2>(Live!)</font>\n";
document.getElementById("track_info").innerHTML = sInfoDesc;

artImg.onload = loadedLiveArt;
artImg.onerror = errorLiveArt;
artImg.src = sLiveImageUrl;

if( sLiveStationUrl ) {
//document.getElementById("artist_info").style.color = sColorText;
document.getElementById("art").innerHTML = "<a href=\"" + sLiveStationUrl + "\" target=_blank><div style=\"border: 0px; width: 75px; height: 75px; cursor: hand; background: #ffffff url('" + sLiveImageUrl + "') no-repeat center center\"></div></a>";
} else {
document.getElementById("art").innerHTML = "<table cellpadding=0 cellspacing=0 border=0 width=\"100%\" height=\"100%\"><tr><td align=center bgcolor=#ffffff><img id=\"art_img\" src=" + sLiveImageUrl + " border=0></td></tr></table>";
}

} else {
var banner_nodes = xmlDoc.getElementsByTagName("banner");
var banners = banner_nodes.length;
var sId = "";
var sLc_id;
var sImg;
var sLink;
var foundBanner = 0;

if ( banners > 0 ) {
var x;
for ( x = 0; x < banners; x++ ) {
sId = xmlDoc.getElementsByTagName("id")[x].firstChild.nodeValue;
if ( sId == "7" ) {
sLc_id = xmlDoc.getElementsByTagName("lc_id")[x].firstChild.nodeValue;
sImg = xmlDoc.getElementsByTagName("img")[x].firstChild.nodeValue;
sLink = xmlDoc.getElementsByTagName("link")[x].firstChild .nodeValue;
foundBanner = 1;
}
}
}
if ( foundBanner) {
// Swap Ad's around
document.getElementById("flashAd").style.display = "none";
document.getElementById("bannerAd").innerHTML = "<a target=_blank href=http://radaol-prod-web-rr.streamops.aol.com/radio/LightningCastRedirectServlet?id=" + sLink + "><img border=0 src=http://bannerad.music.aol.com/" + sImg + "></a>";
document.getElementById("bannerAd").style.display = "block";
}
}
}
}



/*
** onInfoCallback - called from winamp when track info changes
*/
function onInfoCallback( metastring ) {
if ( metastring == "0x3901" ) {
updateSongInfo();
}
}



/*
** onPageLoad - pretty self-explanatory
*/
function onPageLoad() {
try {
oWaBrowser = oWa.Browser();
oWaBrowser.SetSize(531,256); // the minimum minibrowser component's size

oWaSong = oWa.CurrentSong();
oWaSong.RegisterMetadataCallback(onInfoCallback);
updateSongInfo();

oWaSkin = oWa.CurrentSkin();
oWaSkin.RegisterSkinChangeCallback(onSkinCallbackDirect);

onSkinCallback(); // temporary

} catch(e) {
}
}

function onPageUnload() {
oWaSong.UnregisterMetadataCallback(onInfoCallback);
oWaSkin.UnregisterSkinChangeCallback(onSkinCallbackDirect);
}



/*
** disable right click
*/
function clickCheckIE(){
if(document.all){
return false;
}
}
function clickCheckNS(e) {
if (document.layers || (document.getElementById && !document.all)){
if (e.which > 1) {
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = clickCheckNS;
}else{
document.onmouseup = clickCheckNS;
document.oncontextmenu = clickCheckIE;
}
document.oncontextmenu = new Function("return false");

//-->
</script>

</head>
<body id="body" onload="onPageLoad();" onunload="onPageUnload();" ondragstart="return false" onselectstart="return false">

<div id="omnitureCode" name="omnitureCode" style="position: absolute; left: -100px; top: -100px;">

<!-- SiteCatalyst code version: G.9.
Copyright 1997-2004 Omniture, Inc. More info available at http://www.omniture.com
-->
<script language="JavaScript">
<!--

function fParseQS(QSP){var param;var a_params=document.location.href.split("?");if (a_params.length>1){a_params=a_params[1].split("&")}if(a_params.length>0){ for (p=0;p<a_params.length;p++){param=a_params[p].split("="); if(param[0].toLowerCase()==QSP.toLowerCase()){return param[1]}}}}

var s_account="aolwinamp,aolsvc";var s_linkInternalFilters="javascript:,aol.com,shoutcast.com";

var s_pfxID="wna";
var s_pageName=s_pfxID + " : " + "AOL Radio Contextual Window";
var s_server="waweb-dtc0l-2.winamp.com";
var s_channel="us.winamp";
var s_pageType="";
var s_prop1="Winamp Player"; // department
var s_prop2="AOL Radio Contextual Window"; // sub-department
var s_prop3=""; // country
var s_prop12="http://www.winamp.com/bin/xm/xmcontext.php?id=radio:aggregate:21764,radio:station:12740"; // query string (will need to strip out session id, topic id, post id, etc. but may need to keep for things like predixis)
//-->
</script>

<!-- For secure pages be sure to point to https://s.aolcdn.com/omniuni.js-->
<script language="JavaScript" src="http://o.aolcdn.com/omniuni.js"></script>

<script language="JavaScript">
<!--
/********* CODE FOR FLASH BELOW ************/
s_ca(s_account);
function sendAnalyticsEvent(str){
ns=s_account; if(str!=null)ns+=","+str;void(s_gs(ns));}
function sendLinkEvent(str,lnkname){
ns=s_account; if(str!=""&&str!=null)ns+=","+str; s_linkType="o"; s_lnk=true; s_linkName=lnkname; void(s_gs(ns));}
//-->
</script>
<!-- End SiteCatalyst code version: G.9. -->
</div>

<div id="container">

<div id="logo_box"><img src="/images/misc/aol_radio_xm.gif" alt="AOL Radio with XM from AOL Music" width="292" height="35" border="0"></div>
<div id="station_box">
<B>Duran Duran Live</B> - AOL Music and Network Live present Duran Duran in concert from London, England.<br>&nbsp; <!-- <font size=-2><b>Coming Soon:</b></font> -->
</div>
<div id="np_box" id="np_box">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr valign="top">
<td width="100%">
<div id="np_box_header">Now&nbsp;Playing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
<div id="np_box_content">
<div id="art"><img id="art_img" border=0></div>
<div id="track_info">
</div>
<div id="bonus_links">
<!-- <div style="clear: all; width: 100%; height: 4px; overflow: hidden; background-color: #cc0000;"></div> -->
<div id="bonus_links_l" style="float: left;">
nbsp;<br>&nbsp;
</div>
<div id="bonus_links_r" style="float: right;">
nbsp;<br>&nbsp;
</div>
</div>
<div style="clear: all; width: 1px; height: 1px; overflow: hidden;"></div>
</div>
</td>
<td width="5"><div style="width: 5px; overflow: hidden;"></div></td>
<td id="money" width="180">
<div id="flashAd" >
<script>adSetTarget('_blank'); htmlAdWH(sMagicAd, '180', '150');</script>
</div>
<div id="bannerAd" style="display:none" >
</div>
</td>
</tr>
</table>
</div>
</div>

<div id="div_main"></div> <!-- temp -->

</body>
</html>
Abraxias is offline   Reply With Quote
Old 1st November 2005, 23:56   #9
Abraxias
Junior Member
 
Join Date: Oct 2005
Posts: 7
just tried 5.111 and I still have the same 'collapse' script problems.
Abraxias is offline   Reply With Quote
Old 4th November 2005, 09:39   #10
Abraxias
Junior Member
 
Join Date: Oct 2005
Posts: 7
I figured it out!

the problem is because of my IE's custom settings.

I've customized my IE's settings because I don't feel that the IE's default settings are safe.

since all these were all script errors, I decided to check what would happen
if I switched all of my IE's settings back to default…
and, when I tried my Winamp, it works fine now!

had to make some minor adjustments on my custom IE settings.

Last edited by Abraxias; 4th November 2005 at 09:55.
Abraxias is offline   Reply With Quote
Old 4th November 2005, 20:37   #11
siebe83
Forum King
 
siebe83's Avatar
 
Join Date: Feb 2004
Posts: 9,224
Thanks for the feedback

Good Winamp plugins by Joonas, DrO and shaneh.
If you're bored go here or, if the boredom is more serious, here.
siebe83 is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Winamp > Winamp Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump