desktopX: how to show NBA widget?
Saturday, December 15, 2007 by aspa23 | Discussion: Object Desktop
i wanted to creat some sort of object or widget n my desktop that shows me the nba scorebord.
on nba.com, the got a widget for this. they got buttons to integrate it into myspace or facebook or whatever and they tell you to copy the following code:
<embed type=application/x-shockwave-flash width=198 height=444 src=http://widgets.clearspring.com/o/45cc95d4350510ee/474355b8c882a6f0/45cc95d4350510ee/92d6dbcd/ wmode=transparent allowscriptaccess=always allownetworking=all id=45cc95d4350510ee> </embed>
does anybody know how i can get that widget to be displayed on my desktop? that would be really cool!
thanks in advace
Reply #2 Saturday, December 15, 2007 2:17 PM
Reply #4 Saturday, December 15, 2007 3:36 PM
Reply #5 Saturday, December 15, 2007 3:46 PM
Reply #7 Saturday, December 15, 2007 4:22 PM
(But thanks)
Reply #8 Saturday, December 15, 2007 4:54 PM
and i found out, that i basically just need to show this thing on my desk:
http://www.nba.com/media/nba/scoreboard_2007.swf
i made a script using activeX-> microsoft web browser -> but that gives me an error "invalid character"
'Called when the script is executed
Sub Object_OnScriptEnter
control.Navigate2"http://www.nba.com/media/nba/scoreboard_2007.swf"
End Sub
'Called when the script is terminated
Sub Object_OnScriptExit
End Sub
'Fired when the document being navigated to reaches ReadyState_Complete.
Sub Control_DocumentComplete(pDisp, URL)
End Sub
'Fired when application is quiting.
Sub Control_OnQuit()
End Sub
Reply #9 Saturday, December 15, 2007 7:07 PM
so i tried to convert the whole url to ascii...but that wont work either...how do i have to do it?
Reply #10 Sunday, December 16, 2007 1:54 PM
Start with Notepad.
Paste in the embed code.
Save as an htm file ("nba.htm" or whatever).
Open DX and create the activeX Web Browser object.
In the summary tab click on custom files.
Click add to browse for and add the htm file you just created.
Put this script into the object:
'Called when the script is executed
Sub Object_OnScriptEnter
On Error Resume Next
Set fso = CreateObject("Scripting.FileSystemObject")
ofile = Object.Directory & "nba.htm" '--original file location
cfile = DesktopX.ExecutableDirectory & "nba.htm"'--copied file location
'Copy original file to DesktopX folder
If Not fso.fileexists(cfile) Then
fso.copyfile ofile, cfile, True
End If
Control.Navigate2 cfile
End Sub
Be sure to adjust the width/height of the object to accomodate the content.
This worked for almost every other NBA widget they had on the site, but the one you want in particular does not seem to be working.
Some of the widgets returned errors but they still worked after clearing the pop up. Seems to be a site issue, to me. *shrugs*
Reply #11 Sunday, December 16, 2007 3:07 PM
and yes, it really seems to be a site issue that the one widget doesnt show...well, i'll just wait if they fix it
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!







Reply #1 Saturday, December 15, 2007 2:14 PM