Sponsored Content
Full Discussion: Need help with Javascript
Top Forums Programming Need help with Javascript Post 302461301 by figaro on Sunday 10th of October 2010 03:53:31 AM
Old 10-10-2010
I would start with creating a more modular design, such as:
Code:
var dir = "/Library/Themes/iMatte UI.theme/slides/";

If the directory is variable you could use the following (and keeping variable dir above):
Code:
var subdir = ["subdir1", "subdir2", ...];
var slide[1] = [dir+subdir[1], "100%", "53% 20%"];
var slide[2] = [dir+subdir[2], "100%", "53% 28%"];
etc

Randomisation in javascript is trivial, best to consult some online sources for examples. Hope this helps.
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Javascript: Edit a script ?

Hi, i got this script but when i hit reset i loose the times in the form box. Can someone please edit this script so when i hit reset i dont loose the times in the form box's and also have a button to reset everything, including the form boxs <script language="javascript"> // stopwatch... (1 Reply)
Discussion started by: perleo
1 Replies

2. UNIX for Dummies Questions & Answers

javascript onClick help

I have two radio buttons with corresponding text boxes for input, when one is chosen I am disabling the text box for the other, is there a way to "gray out" the disabled text box using background-color or something? Any help is greatly appreciated, right now my onClick looks like this: ... (1 Reply)
Discussion started by: k@ssidy
1 Replies

3. Shell Programming and Scripting

javascript injection

Please advise a script to get rid of the following code which is infected in a large number of files ( in particular php and html files ) <div id="testws35fdgh"></div> <script language="JavaScript"> var0 = "\x69\x3c\x33\x27\x34\x38\x30\x75\x3b\x34"; var1 =... (20 Replies)
Discussion started by: fed.linuxgossip
20 Replies

4. Web Development

Javascript -> Shell Script

Hi all, I am trying to call a shell script from a javascript function. This works fine and the shell script returns everything I expected BUT I cannot figure out how to pass command line arguments to this shell script. Using GET, I assume the url being called needs to be one string with no... (7 Replies)
Discussion started by: mark007
7 Replies

5. Web Development

Sortable Tables in Javascript

Hi, I am writing a web application using Perl-CgI mostly. I wanted to integrate a table in which I was capable of sorting columns and I don't think this is possible with static HTML code. Can someone help me integrating some javascript code into what I have to acheive the above? Regards,... (6 Replies)
Discussion started by: garric
6 Replies

6. Web Development

Javascript Problems in Opera 10

Ref earlier post: https://www.unix.com/web-programming-web-2-0-mashups/118283-opera-10-0-released-looks-nice.html I have noticed that Google Docs, Speadsheets does not work properly in Opera 10. Anyone else seen the same thing? (1 Reply)
Discussion started by: Neo
1 Replies

7. Programming

Help in javascript

Hi , I wanted to know if its possible to execute a javascript function like this E:- function js1(){ alert ("this is js1"); } function js2(){ alert ("this is js2"); } function js3(){ .... execthisscript(js1); execthisscript(js2); } ... (1 Reply)
Discussion started by: daptal
1 Replies

8. Shell Programming and Scripting

want to use javascript as shell script

<html> <head> <title>Weather & Aviation Page - METAR decoder</title> <meta name="Title" content="Weather & Aviation Page - METAR decoder"> <meta name="Keywords" content="METAR decoder"> <meta name="Publisher" content="SkyStef"> <meta name="Description" content="SkyStefs weather and aviation... (4 Replies)
Discussion started by: anuajay1988
4 Replies
RABBIT-COMMAND(1)						  rabbit-command						 RABBIT-COMMAND(1)

NAME
rabbit-command - commandline utility for Rabbit SYNOPSIS
rabbit-command [options] DESCRIPTION
--rabbit-uri=URI Specify Rabbit's dRuby URI as [URI]. (druby://localhost:10101) --druby-uri=URI Deprecated. Use --rabbit-uri instead. Specify Rabbit's dRuby URI as [URI]. (druby://localhost:10101) Move commands --previous Move to previous --next Move to next --previous-slide Move to the previous slide --next-slide Move to the next slide --first-slide Move to the first slide --last-slide Move to the last slide --jump-to=N Move to the Nth slide Get commands --source Show source --current-slide-rd Show the current slide source as RD Control commands --toggle-fullscreen Toggle fullscreen --toggle-index-mode Toggle index mode --toggle-whiteout Toggle whiteout --toggle-blackout Toggle blackout --quit Quit Common options --locale-dir=DIR Specify locale dir as [DIR]. (auto) --logger-type=TYPE Specify logger type as [TYPE]. Select from [stderr, gui]. (STDERR) --log-level=LEVEL Specify log level as [LEVEL]. Select from [debug, info, warning, error, fatal, unknown]. (info) --help Show this message. --version Show version. rabbit-command 1.0.7 June 2012 RABBIT-COMMAND(1)
All times are GMT -4. The time now is 10:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy