Tutorials to .com

Tutorials to .com » Asp » Encoding » Interactive drop-down list box (EC net influx of truth Classmates message board used by the code)

Interactive drop-down list box (EC net influx of truth Classmates message board used by the code)

Print View , by: iSee ,Total views: 20 ,Word Count: 554 ,Date: Tue, 2 Jun 2009 Time: 8:24 AM

/ / The function of specific examples, please view the EC net influx (http://www.ectide.com/) of the truth Classmates message board, visitors from the visitors into the
/ / Of this function in slightly modified form element name value can be changed to your site, you can easily have a super-board interactive drop-down list box it!
/ / This function check out the specific functions of EC net influx (http://www.ectide.com/) Classmates message board of the truth of the "Did you know"

/ / List box will be selected in a list box and move part 2
function godown ()
(
for (i = 0; i <= newmessage.allfriends. options. length -1; i + +)
(
if (newmessage.allfriends. options [i]. selected)
(
var element = window.Option.create (newmessage.allfriends.options [i]. text,
newmessage.allfriends. options [i]. value, 0);
newmessage.selectedfriends.add (element);
)

)
for (i = 0; i <newmessage.allfriends. options. length; i + +)
(
if (newmessage.allfriends. options [i]. selected)
(
newmessage.allfriends.remove (i);
i = i - 1;
)

)
newmessage.clearall.disabled = false;
newmessage.downbox.disabled = true;
if (newmessage.allfriends.options.length == 0)
(
newmessage.selectall.disabled = true;
newmessage.downbox.disabled = true;
)
if (newmessage.selectedfriends.options.length == 0)
(
newmessage.clearall.disabled = true;
)
)

/ / Will be located in the following list box above the selected value to move the list box
function goup ()
(
for (i = 0; i <= newmessage.selectedfriends. options. length -1; i + +)
(
if (newmessage.selectedfriends. options [i]. selected)
(
var element = window.Option.create (newmessage.selectedfriends.options [i]. text,
newmessage.selectedfriends. options [i]. value, 0);
newmessage.allfriends.add (element);
)

)
for (i = 0; i <newmessage.selectedfriends. options. length; i + +)
(
if (newmessage.selectedfriends. options [i]. selected)
(
newmessage.selectedfriends.remove (i);
i = i - 1;
)

)

newmessage.selectall.disabled = false;
newmessage.upbox.disabled = true;
if (newmessage.selectedfriends.options.length == 0)
(
newmessage.clearall.disabled = true;
newmessage.upbox.disabled = true;
)
if (newmessage.allfriends.options.length == 0)
(
newmessage.selectall.disabled = true;
)
)

/ / Will be above all the options list box list box to move the following
function alldown ()
(
for (i = 0; i <= newmessage.allfriends. options. length -1; i + +)
(
var element = window.Option.create (newmessage.allfriends.options [i]. text,
newmessage.allfriends. options [i]. value, 0);
newmessage.selectedfriends.add (element);
)

for (i = 0; i <newmessage.allfriends. options. length; i + +)
(
newmessage.allfriends.remove (i);
i = i - 1;
)
newmessage.clearall.disabled = false;
newmessage.selectall.disabled = true;
newmessage.downbox.disabled = true;

)

/ / The following list of all the options box moved to the top of the list box
function allup ()
(
for (i = 0; i <= newmessage.selectedfriends. options. length -1; i + +)
(
var element = window.Option.create (newmessage.selectedfriends.options [i]. text,
newmessage.selectedfriends. options [i]. value, 0);
newmessage.allfriends.add (element);
)

for (i = 0; i <newmessage.selectedfriends. options. length; i + +)
(
newmessage.selectedfriends.remove (i);
i = i - 1;
)
newmessage.clearall.disabled = true;
newmessage.selectall.disabled = false;
newmessage.upbox.disabled = true;

)


Asp Script encoding Articles


Can't Find What You're Looking For?


Rating: Not yet rated

Comments

No comments posted.