Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Javascript Random URL/Option Selector
Old 02-06-2011, 01:26 AM Javascript Random URL/Option Selector
1nteresting's Avatar
Skilled Talker

Posts: 90
Trades: 0
Here's what script I'm using as a base-line.
http://www.javascriptkit.com/script/...tedcombo.shtml

I'm trying to figure out how to do this with an example box on the left hand side, only without the animation. Thank you!
__________________
Check out my portfolio:

Please login or register to view this content. Registration is FREE

And my tech blog:
Please login or register to view this content. Registration is FREE
1nteresting is offline
Reply With Quote
View Public Profile Visit 1nteresting's homepage!
 
 
Register now for full access!
Old 02-07-2011, 08:48 AM Re: Javascript Random URL/Option Selector
Extreme Talker

Posts: 246
Trades: 0
I don't see any animation you are talking about, plus all the code is there. Please be more specific with your question.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
stbuchok is offline
Reply With Quote
View Public Profile
 
Old 02-07-2011, 02:02 PM Re: Javascript Random URL/Option Selector
Super Spam Talker

Posts: 879
Name: Paul W
Trades: 0
I assume he means the highlighting of each option as it is "selected". Just remove the code that sets to selected unless it's the last one.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is online now
Reply With Quote
View Public Profile
 
Old 02-07-2011, 10:28 PM Re: Javascript Random URL/Option Selector
1nteresting's Avatar
Skilled Talker

Posts: 90
Trades: 0
@stbuchok See how in the example on the left hand side of that page, when you click on the "Random Link!" button, it will select a link from that list, but while it's choosing it has this animation? I would like to remove that animation after you click Random Link as I have a huge list of about 150 website urls, and I do not want to waste any time.

@Paul I don't know what code to remove, I'm not very familiar with coding Javascript.
__________________
Check out my portfolio:

Please login or register to view this content. Registration is FREE

And my tech blog:
Please login or register to view this content. Registration is FREE
1nteresting is offline
Reply With Quote
View Public Profile Visit 1nteresting's homepage!
 
Old 02-08-2011, 03:10 AM Re: Javascript Random URL/Option Selector
Novice Talker

Posts: 3
Name: lexus1717
Trades: 0
Oh my God..This programming in Java..i dont understand this programming folks
__________________

Please login or register to view this content. Registration is FREE
lexus1717 is offline
Reply With Quote
View Public Profile
 
Old 02-08-2011, 09:58 AM Re: Javascript Random URL/Option Selector
Extreme Talker

Posts: 246
Trades: 0
Basically you need to get a random number for which item will be selected.

replace randomize with something like this:

randomize: function(){
window.location=this.selectObj[Math.floor(Math.random()*this.selectObj.options.le ngth)].value;
}

I haven't tested but I'm sure you can tweak it to meet your needs.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
stbuchok is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Javascript Random URL/Option Selector
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23106 seconds with 12 queries