what does \\ mean in javascript

This is a discussion on "what does \\ mean in javascript" within the JavaScript Forum section. This forum, and the thread "what does \\ mean in javascript are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 5th, 2004, 23:34
Junior Member
Join Date: Dec 2003
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
what does \\ mean in javascript

im tryin to insert this javascript code in my page and customize it. It says in order to change anything, you must uncomment the script. does that mean to take out the \\ or the '' or what? im not very familar with javascript. here is the link http://www.dynamicdrive.com/dynamicindex2/fader.htm

  #2 (permalink)  
Old Jan 5th, 2004, 23:37
Junior Member
Join Date: Nov 2003
Location: United Kingdom
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Yes, take the // out from the lines you want active.
These are the bits you are interested in...
Code: Select all
// uncomment any value you wanted to change
		//var TS_ymax    = 50;			// How many pixel to move
		//var TS_ystep   = 1;			// 1 or -1 only (Scroll direction)
		//var TS_speed   = 2;			// The smaller the value the faster
		//var TS_pause   = 100;			// Pause time(milisecond) between messages
Dont take the // at the right of these lines though else you will get errors
  #3 (permalink)  
Old Jan 5th, 2004, 23:44
Junior Member
Join Date: Dec 2003
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
<font face="Arial Black"><font face="Andale Mono">ok thanks. do i do the same with changing the text?</font id="Andale Mono"></font id="Arial Black">

//1) Configure messages:
var TS_message = new Array();
TS_message[0] = '<div align="left"></div>';
TS_message[1] = '<div align="left">Wow... hope you like it!</div>';
TS_message[2] = '<div align="left">Presented by Dynamicdrive.com</div>';

<font face="Arial Black"><font face="Andale Mono">just take out the // ,or take out //1)Configure messages: ? thnx</font id="Andale Mono"></font id="Arial Black">
  #4 (permalink)  
Old Jan 6th, 2004, 09:03
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
leave this bit alone:

//1) Configure messages:

just change the contents of these:

TS_message[0]
TS_message[1]
TS_message[2]
  #5 (permalink)  
Old Jan 6th, 2004, 09:06
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
in case you dont understand, // comments out a line of code, and the code is not executed.

for example:

//this line of code wont do anything
this line of code will do something
  #6 (permalink)  
Old Jan 6th, 2004, 17:05
Junior Member
Join Date: Dec 2003
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
thanks for your help! i will try and see if it works now.
Closed Thread

Tags
mean, javascript

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
php and javascript yvettesio JavaScript Forum 8 Mar 14th, 2007 23:18
Javascript Help Daniel JavaScript Forum 5 Jan 4th, 2007 22:00
JavaScript cbrams9 JavaScript Forum 1 Sep 20th, 2006 17:35
using xml in javascript shailu JavaScript Forum 0 Jul 25th, 2006 07:36
Can someone help me with this javascript Galaxyblue JavaScript Forum 2 Mar 11th, 2004 12:18


All times are GMT. The time now is 04:35.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43