Click here to Skip to main content
15,843,937 members
Home / Discussions / JavaScript
   

JavaScript

 
Questionfor source code Pin
Member 121783931-Dec-15 1:59
Member 121783931-Dec-15 1:59 
AnswerRe: for source code Pin
Eddy Vluggen1-Dec-15 2:27
professionalEddy Vluggen1-Dec-15 2:27 
AnswerRe: for source code Pin
ZurdoDev16-Dec-15 11:04
professionalZurdoDev16-Dec-15 11:04 
QuestionSimple, Simple Javascript question... Pin
TenmanS1427-Nov-15 5:39
TenmanS1427-Nov-15 5:39 
AnswerRe: Simple, Simple Javascript question... Pin
F-ES Sitecore29-Nov-15 23:16
professionalF-ES Sitecore29-Nov-15 23:16 
GeneralRe: Simple, Simple Javascript question... Pin
TenmanS1414-Dec-15 23:21
TenmanS1414-Dec-15 23:21 
QuestionDisplaying specific data from a CSV file Pin
Emre Testici25-Nov-15 22:44
Emre Testici25-Nov-15 22:44 
QuestionThe problem of JavaScript position Pin
Ted.K-121-Nov-15 22:28
Ted.K-121-Nov-15 22:28 
Dear All,
I got a question!
why can't i put the script code after the div with class="jumbotorn" ?
I have tried to put it in the , and it's work!
Please helps me!
THANKS!

HTML
<body>
	<div class="jumbotron">
	<div align="center">
		<h1 style="font-family:微軟正黑體;">行銷神語</h1>
		<p id="pharse"></p>
		<p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a></p>
	</div>
	</div>

	<script>
		function makePharse(){
			var word1 = ["24/7","Multi-Tier","30,000 foot","B-to-B","Win-Win","Customer"];
			var word2 = ["Empowered","Value-Added","Oriented","Focused","Aligned"];
			var word3 = ["Process","Solution","Tipping-Point","Strategy","Vision"];
			var rand1 = Math.floor(Math.random()*word1.length);
			var rand2 = Math.floor(Math.random()*word2.length);
			
			var pharse = word1[rand1]+""+word2[rand2]+"";
			var pharseElement = document.getElementById("pharse");
			pharseElement.innerHTML = pharse;
			pharseElement.innerHTML = "TESt";
			
		}
		
    
	</script>
</body>

AnswerRe: The problem of JavaScript position Pin
Peter Leow21-Nov-15 22:55
professionalPeter Leow21-Nov-15 22:55 
AnswerRe: The problem of JavaScript position Pin
Cai Yang18-Dec-15 0:42
Cai Yang18-Dec-15 0:42 
Questionsocial media buttons block page on IE? Pin
V.17-Nov-15 22:18
professionalV.17-Nov-15 22:18 
QuestionHow to create a number field site column in javascript Pin
Member 1188942312-Nov-15 20:54
Member 1188942312-Nov-15 20:54 
QuestionRe: How to create a number field site column in javascript Pin
ZurdoDev23-Nov-15 4:03
professionalZurdoDev23-Nov-15 4:03 
Questionregex, get the last dollar amount if 2 are present Pin
jkirkerx12-Nov-15 9:51
professionaljkirkerx12-Nov-15 9:51 
AnswerRe: regex, get the last dollar amount if 2 are present [Solved] Pin
jkirkerx12-Nov-15 10:35
professionaljkirkerx12-Nov-15 10:35 
QuestionJavaScript Tour guide Pin
Member 1198488311-Nov-15 22:14
Member 1198488311-Nov-15 22:14 
AnswerRe: JavaScript Tour guide Pin
Richard MacCutchan11-Nov-15 22:19
mveRichard MacCutchan11-Nov-15 22:19 
GeneralRe: JavaScript Tour guide Pin
Member 1198488311-Nov-15 22:33
Member 1198488311-Nov-15 22:33 
AnswerRe: JavaScript Tour guide Pin
Richard Deeming12-Nov-15 3:13
mveRichard Deeming12-Nov-15 3:13 
QuestionJava 2D Array - User Input Pin
Frankie124510-Nov-15 14:02
Frankie124510-Nov-15 14:02 
QuestionRe: Java 2D Array - User Input Pin
Richard MacCutchan11-Nov-15 0:09
mveRichard MacCutchan11-Nov-15 0:09 
QuestionHow can I collect news from differnt sites in one html page Pin
abo sohaib9-Nov-15 21:18
abo sohaib9-Nov-15 21:18 
AnswerRe: How can I collect news from differnt sites in one html page Pin
Afzaal Ahmad Zeeshan9-Nov-15 21:34
professionalAfzaal Ahmad Zeeshan9-Nov-15 21:34 
GeneralRe: How can I collect news from differnt sites in one html page Pin
abo sohaib10-Nov-15 11:36
abo sohaib10-Nov-15 11:36 
QuestionImage does not display in Firefox Pin
ParthiR5-Nov-15 1:57
professionalParthiR5-Nov-15 1:57 

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.