Posts by EduApps • 47 points
9 posts
-
-1
votes1
answer49
viewsQ: Math.Random is not random enough
I noticed that if I use the Math.random with values from 0 to 10, it is very possible that the result will be repeated or generate an approximate value of the previous. For example, I executed:…
javascriptasked EduApps 47 -
0
votes1
answer187
viewsQ: simple question: "why does Eval() not work?"!
I have a simple code to run, I never used Val, but I know its syntax: var package = "edos.desktop"; eval(package + ".main()"); But it’s not working in my browser... I tried to use some alternatives…
-
0
votes1
answer40
viewsA: Show and hide videos while hovering over text
try this: HTML: <p>text</p> <video src="myfile.mp4"/> JS: var p = document.getElementsByTagName("p"); p[* /*este é o numero do <P> sendo 0 o primeiro p,e 9 o…
-
1
votes1
answer201
viewsA: Run Javascript when updating the page
try this: window.onload = function() { setTimeout(function () { window.scrollTo(0, 1000); window.location.reload(1); }, 1000); var xhttp = new XMLHttpRequest(); xhttp.open("GET", "arquivo.txt",…
-
0
votes0
answers48
viewsQ: Convert string to object in Javascript without Apis
I have a string, caught by a function, called package, and its value is equivalent to "edos.desktop". function callMain(package) { //queria fazer tipo assim, é apenas uma suposição: package.main();…
javascriptasked EduApps 47 -
-2
votes1
answer32
viewsQ: How do I execute a main() function without affecting the other of another script?
I have three files: Arquivo1.js function main() { . . . } Arquivo2.js function main() { . . . } System js function openApp(package) { var a = document.createElement("script"); a.src = "/" + package…
-
0
votes1
answer211
viewsQ: change the style of a tag within another tag
within a DIV has three A and an IFRAME, I want to change the A style without interfering with IFRAME, but I need to do this in javascript, because I’m developing an api from a single file and I…
-
0
votes1
answer78
views -
2
votes1
answer31
viewsQ: Horizontal scrollbar being rolled by vertical scrollbar
I’m doing a little test with the scrollbar of Chrome Canary 74 on Android. I read a lot about it, but I didn’t get results for the mobile device, and since I don’t have a pc, I use Web Aide to…