Click here to Skip to main content
15,881,938 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionHow to change the theme in javascript? Pin
Vayam Technologies Ltd. “Vayamtech” - New Delhi26-Oct-16 0:25
Vayam Technologies Ltd. “Vayamtech” - New Delhi26-Oct-16 0:25 
AnswerRe: How to change the theme in javascript? Pin
Rahul VB27-Oct-16 0:40
professionalRahul VB27-Oct-16 0:40 
GeneralRe: How to change the theme in javascript? Pin
Karthik_Mahalingam9-Nov-16 17:52
professionalKarthik_Mahalingam9-Nov-16 17:52 
GeneralRe: How to change the theme in javascript? Pin
Rahul VB9-Nov-16 23:24
professionalRahul VB9-Nov-16 23:24 
AnswerRe: How to change the theme in javascript? Pin
jkirkerx28-Oct-16 11:44
professionaljkirkerx28-Oct-16 11:44 
QuestionChange Image Background Using Javascript Pin
MadDashCoder24-Oct-16 14:48
MadDashCoder24-Oct-16 14:48 
SuggestionRe: Change Image Background Using Javascript Pin
ZurdoDev25-Oct-16 2:03
professionalZurdoDev25-Oct-16 2:03 
AnswerRe: Change Image Background Using Javascript Pin
Kornfeld Eliyahu Peter25-Oct-16 4:02
professionalKornfeld Eliyahu Peter25-Oct-16 4:02 
Do you mean to change to color/background color of the cursor you moving around with your mouse? From JavaScript? Dynamically?
In web pages cursor image can be set by using CSS (possible also via JS, but it is still CSS), by setting the cursor property...
Cursor property supports some predefined values and a URL to an image...
As with most URL related CSS properties this one too can get a data-uri where URL requested...
A data-uri is an inline binary data-string that defines an image, like:
From CSS:
CSS
body {
  cursor: url('data:application/cur;base64,base64stringoftheimage'), auto;
}

From JS:
JavaScript
document.bodystyle.cursor = "url('data:application/cur;base64,base64stringoftheimage'), auto";

Now you can create that base64-string for your image dynamically based on the color you want...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.

GeneralRe: Change Image Background Using Javascript Pin
MadDashCoder30-Oct-16 7:27
MadDashCoder30-Oct-16 7:27 
QuestionConvert a number or numbers into spoken words using JavaScript? Pin
samflex24-Oct-16 9:31
samflex24-Oct-16 9:31 
AnswerRe: Convert a number or numbers into spoken words using JavaScript? Pin
ZurdoDev24-Oct-16 10:21
professionalZurdoDev24-Oct-16 10:21 
AnswerRe: Convert a number or numbers into spoken words using JavaScript? Pin
Nathan Minier25-Oct-16 1:50
professionalNathan Minier25-Oct-16 1:50 
AnswerRe: Convert a number or numbers into spoken words using JavaScript? Pin
F-ES Sitecore26-Oct-16 4:18
professionalF-ES Sitecore26-Oct-16 4:18 
GeneralRe: Convert a number or numbers into spoken words using JavaScript? Pin
samflex26-Oct-16 9:38
samflex26-Oct-16 9:38 
Questionvariable undefined Pin
wfzen21-Oct-16 8:08
wfzen21-Oct-16 8:08 
AnswerRe: variable undefined Pin
Richard MacCutchan21-Oct-16 22:11
mveRichard MacCutchan21-Oct-16 22:11 
AnswerRe: variable undefined Pin
Rahul VB22-Oct-16 8:28
professionalRahul VB22-Oct-16 8:28 
GeneralRe: variable undefined Pin
wfzen25-Oct-16 12:20
wfzen25-Oct-16 12:20 
Questiongenerate html on separate page Pin
dcof17-Oct-16 10:22
dcof17-Oct-16 10:22 
Rant[REPOST] generate html on separate page Pin
Richard Deeming18-Oct-16 2:00
mveRichard Deeming18-Oct-16 2:00 
QuestionSave form data without using Php Pin
LincolnMugasho16-Oct-16 6:21
professionalLincolnMugasho16-Oct-16 6:21 
AnswerRe: Save form data without using Php Pin
F-ES Sitecore16-Oct-16 23:21
professionalF-ES Sitecore16-Oct-16 23:21 
AnswerRe: Save form data without using Php Pin
Nathan Minier17-Oct-16 1:09
professionalNathan Minier17-Oct-16 1:09 
Questioncosmetic fix, get the spinner to show for a second Pin
jkirkerx14-Oct-16 9:43
professionaljkirkerx14-Oct-16 9:43 
AnswerRe: cosmetic fix, get the spinner to show for a second Pin
Richard Deeming17-Oct-16 2:00
mveRichard Deeming17-Oct-16 2:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.