Test

From Dxx

(Difference between revisions)
Line 1: Line 1:
-
=TEST=
+
 
-
=TEST=
+
-
=TEST=
+
-
=TEST=
+
-
=TEST=
+
<plain_html>
<plain_html>
Line 47: Line 43:
<plain_html>
<plain_html>
<script type="text/javascript" charset="utf-8" language="javascript" src="http://static.polldaddy.com/p/1469883.js" width="200" height="200"></script><noscript> <a href ="http://answers.polldaddy.com/poll/1469883/" >How often do you visit the DXXPedia?</a>  <br/> <span style="font-size:9px;"> (<a href ="http://www.polldaddy.com">  surveys</a>)</span></noscript></plain_html>
<script type="text/javascript" charset="utf-8" language="javascript" src="http://static.polldaddy.com/p/1469883.js" width="200" height="200"></script><noscript> <a href ="http://answers.polldaddy.com/poll/1469883/" >How often do you visit the DXXPedia?</a>  <br/> <span style="font-size:9px;"> (<a href ="http://www.polldaddy.com">  surveys</a>)</span></noscript></plain_html>
 +
 +
<plain_html>// JavaScript Document
 +
///////////////////
 +
/////GadgetStudio constants
 +
//////////////////
 +
 +
var gSearchURL = new Array("http://dxxtherebirth.proboards86.com/index.cgi?action=viewprofile&user=%keyword%", "http://editthis.info/dxx/Special:Search?search=%keyword%&go=Go", "http://dxxtherebirth.proboards86.com/index.cgi?board=%keyword%", "");
 +
var gSearchName = new Array("DXX Profiles", "DXXPedia", "DXX Boards", "");
 +
 +
//var gSearchURL ="http://www.google.com/search?q=";
 +
//var gSearchURL = new Array("", "http://editthis.info/dxx/Special:Search?search=%keyword%&go=Go", "http://dxxtherebirth.proboards86.com/index.cgi?board=%keyword%", "", "", "", "", "", "", "");
 +
//var gSearchName = new Array("Google", "DXXPedia", "DXX Boards", "", "", "", "", "", "", "");
 +
 +
//sample
 +
//http://www.google.com/search?q=%keyword%
 +
 +
////////////////////////
 +
//////Debug
 +
/////////////////
 +
function Debug(string)
 +
{
 +
System.Debug.outputString(string);
 +
}
 +
///////////////////////////////
 +
// Handlers for gadget's events
 +
//////////////////////////////
 +
 +
function SettingsClosed(event)
 +
{
 +
if (event.closeAction == event.Action.commit)
 +
{
 +
loadGadget();
 +
}   
 +
}
 +
                                                           
 +
function SettingsClosing(event)
 +
{
 +
if (event.closeAction == event.Action.commit)
 +
{
 +
SaveSettings();
 +
 +
else if (event.closeAction == event.Action.cancel)
 +
{
 +
}
 +
event.cancel = false;
 +
}
 +
 +
function CheckDockState()
 +
{
 +
if (System.Gadget.docked)
 +
    {
 +
        //set dock state
 +
dockedState();
 +
    }
 +
    else
 +
    {
 +
        //set undock state
 +
undockedState();
 +
    }
 +
}
 +
 +
/////////////////////////////
 +
///////Gadgets functions
 +
//////////////////////////
 +
//load gadget function
 +
function loadGadget()
 +
{
 +
Start();
 +
if (typeof (System) == 'undefined') return;
 +
//attach to events
 +
System.Gadget.onSettingsClosed = SettingsClosed;
 +
System.Gadget.onDock = CheckDockState;
 +
System.Gadget.onUndock = CheckDockState;
 +
System.Gadget.settingsUI = "settings.html";
 +
}
 +
//event undocked
 +
function undockedState()
 +
{
 +
Debug("Undocked State");
 +
}
 +
//event docked
 +
function dockedState()
 +
 +
Debug("docked State");
 +
}
 +
 +
/////////////////////////////
 +
/////Settings functions
 +
///////////////////////////
 +
 +
//load settings function
 +
function loadSettings()
 +
{  Debug("Load settings");
 +
if (typeof (System) == 'undefined') return;
 +
System.Gadget.onSettingsClosing = SettingsClosing;
 +
if (System.Gadget.Settings.read("first_time")=="")
 +
{
 +
Debug("1000");
 +
gad_time.value = gDefaultTime;
 +
}
 +
else
 +
{      Debug("00");
 +
var gTime = System.Gadget.Settings.read("gad_time");
 +
if (gTime == "") gad_time.value = gDefaultTime;
 +
else gad_time.value = gTime;
 +
}
 +
}
 +
//save settings function
 +
function SaveSettings()
 +
{
 +
System.Gadget.Settings.write("gad_time", gad_time.value);
 +
System.Gadget.Settings.write("first_time", "no");
 +
}
 +
 +
///////////////////////
 +
////Gadget custom code
 +
///////////////////////
 +
function Start()
 +
{
 +
var myselect = document.getElementById("engine");
 +
var j=0;
 +
for(var i=0; i<4; i++)
 +
{
 +
if(gSearchName[i]!="")
 +
{
 +
myselect.options[j] = new Option(gSearchName[i],i);
 +
j++;
 +
}
 +
}
 +
myselect.selectedIndex=0;
 +
var myeng = document.getElementById("eng");
 +
myeng.value=myselect.options[0].text;
 +
}
 +
 +
function Search(keyword)
 +
{
 +
var myselect = document.getElementById("engine");
 +
if(myselect.selectedIndex != -1)
 +
{
 +
//replace %keyword
 +
var str=gSearchURL[myselect.options[myselect.selectedIndex].value].replace("%keyword%", document.getElementById("keyword").value);
 +
// alert(str);
 +
location.href=str;
 +
}
 +
}
 +
 +
function Show()
 +
{
 +
var mydiv = document.getElementById("select_box");
 +
mydiv.style.display = (mydiv.style.display=='none')?'':'none';
 +
return false;
 +
}
 +
 +
function Select()
 +
{
 +
var myselect = document.getElementById("engine");
 +
var myeng = document.getElementById("eng");
 +
myeng.value=myselect.options[myselect.selectedIndex].text;
 +
var mydiv = document.getElementById("select_box");
 +
mydiv.style.display = 'none';
 +
}
 +
</plain_html>

Revision as of 09:40, 22 March 2009


<plain_html>

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/kTV1CcS53JQ"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/kTV1CcS53JQ" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

</plain_html>



<plain_html>

<iframe frameborder="0" width="600" height="50" src="http://www5.cbox.ws/box/?boxid=439806&boxtag=9273&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#DBE2ED 1px solid;" id="cboxmain"></iframe>
<iframe frameborder="0" width="600" height="75" src="http://www5.cbox.ws/box/?boxid=439806&boxtag=9273&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#DBE2ED 1px solid;border-top:0px" id="cboxform"></iframe>

</plain_html>

<plain_html>

<EMBED src="http://GameCheetah.chatango.com/group" bgcolor="#FFFFFF" width="600" height="200" wmode="transparent" allowScriptAccess="always" allowNetworking="all" type="application/x-shockwave-flash" flashvars = "a=000000&b=100&c=00CC33&d=00CC33&f=62&k=666666&l= 00CC33&m=00CC33&q=00CC33&r=100&s=1"></EMBED>
[ <a href="http://GameCheetah.chatango.com/clonegroup">Copy this</a> | <a href="http://chatango.com/creategroup">Start New</a> | <a href="http://GameCheetah.chatango.com">Full Size</a> ]

</plain_html>


<plain_html>

<EMBED src="http://GameCheetah.chatango.com/group" bgcolor="#FFFFFF" width="600" height="200" wmode="transparent" allowScriptAccess="always" allowNetworking="all" type="application/x-shockwave-flash" flashvars = "a=000000&b=100&c=00CC33&d=00CC33&f=62&k=666666&l= 00CC33&m=00CC33&q=00CC33&r=100&s=1"></EMBED>
[ <a href="http://GameCheetah.chatango.com/clonegroup">Copy this</a> | <a href="http://chatango.com/creategroup">Start New</a> | <a href="http://GameCheetah.chatango.com">Full Size</a> ]

</plain_html>

<a href="javascript:hideDiv()">hide Div</a>

<a href="javascript:showDiv()">show Div</a>




<plain_html> <script type="text/javascript" charset="utf-8" language="javascript" src="http://static.polldaddy.com/p/1469883.js" width="200" height="200"></script><noscript> <a href ="http://answers.polldaddy.com/poll/1469883/" >How often do you visit the DXXPedia?</a>
(<a href ="http://www.polldaddy.com"> surveys</a>)</noscript></plain_html>

<plain_html>// JavaScript Document /////////////////// /////GadgetStudio constants //////////////////

var gSearchURL = new Array("http://dxxtherebirth.proboards86.com/index.cgi?action=viewprofile&user=%keyword%", "http://editthis.info/dxx/Special:Search?search=%keyword%&go=Go", "http://dxxtherebirth.proboards86.com/index.cgi?board=%keyword%", ""); var gSearchName = new Array("DXX Profiles", "DXXPedia", "DXX Boards", "");

//var gSearchURL ="http://www.google.com/search?q="; //var gSearchURL = new Array("", "http://editthis.info/dxx/Special:Search?search=%keyword%&go=Go", "http://dxxtherebirth.proboards86.com/index.cgi?board=%keyword%", "", "", "", "", "", "", ""); //var gSearchName = new Array("Google", "DXXPedia", "DXX Boards", "", "", "", "", "", "", "");

//sample //http://www.google.com/search?q=%keyword%

//////////////////////// //////Debug ///////////////// function Debug(string) { System.Debug.outputString(string); } /////////////////////////////// // Handlers for gadget's events //////////////////////////////

function SettingsClosed(event) { if (event.closeAction == event.Action.commit) { loadGadget(); } }

function SettingsClosing(event) { if (event.closeAction == event.Action.commit) { SaveSettings(); } else if (event.closeAction == event.Action.cancel) { } event.cancel = false; }

function CheckDockState() { if (System.Gadget.docked)

   {
       //set dock state

dockedState();

   }
   else
   {
       //set undock state

undockedState();

   }

}

///////////////////////////// ///////Gadgets functions ////////////////////////// //load gadget function function loadGadget() { Start(); if (typeof (System) == 'undefined') return; //attach to events System.Gadget.onSettingsClosed = SettingsClosed; System.Gadget.onDock = CheckDockState; System.Gadget.onUndock = CheckDockState; System.Gadget.settingsUI = "settings.html"; } //event undocked function undockedState() { Debug("Undocked State"); } //event docked function dockedState() { Debug("docked State"); }

///////////////////////////// /////Settings functions ///////////////////////////

//load settings function function loadSettings() { Debug("Load settings"); if (typeof (System) == 'undefined') return; System.Gadget.onSettingsClosing = SettingsClosing; if (System.Gadget.Settings.read("first_time")=="") { Debug("1000"); gad_time.value = gDefaultTime; } else { Debug("00"); var gTime = System.Gadget.Settings.read("gad_time"); if (gTime == "") gad_time.value = gDefaultTime; else gad_time.value = gTime; } } //save settings function function SaveSettings() { System.Gadget.Settings.write("gad_time", gad_time.value); System.Gadget.Settings.write("first_time", "no"); }

/////////////////////// ////Gadget custom code /////////////////////// function Start() { var myselect = document.getElementById("engine"); var j=0; for(var i=0; i<4; i++) { if(gSearchName[i]!="") { myselect.options[j] = new Option(gSearchName[i],i); j++; } } myselect.selectedIndex=0; var myeng = document.getElementById("eng"); myeng.value=myselect.options[0].text; }

function Search(keyword) { var myselect = document.getElementById("engine"); if(myselect.selectedIndex != -1) { //replace %keyword var str=gSearchURL[myselect.options[myselect.selectedIndex].value].replace("%keyword%", document.getElementById("keyword").value); // alert(str); location.href=str; } }

function Show() { var mydiv = document.getElementById("select_box"); mydiv.style.display = (mydiv.style.display=='none')?:'none'; return false; }

function Select() { var myselect = document.getElementById("engine"); var myeng = document.getElementById("eng"); myeng.value=myselect.options[myselect.selectedIndex].text; var mydiv = document.getElementById("select_box"); mydiv.style.display = 'none'; } </plain_html>

Personal tools
DXX Roster