Posts by Diego Henrique • 2,916 points
172 posts
-
0
votes2
answers241
viewsQ: How to switch the #(fence) symbol by the $(dollar sign) in the terminal after switching user
I’ll be direct, because the title denotes part of my curiosity about the linux console. Explain In some distros like - xPud and Basiclinux3 no "HOME" support is only "ROOT" and ready! In the distro…
-
0
votes1
answer461
viewsA: How to make condition receive a parameter followed by an argument
I make available the shell script using the concept of flow control commands, the if, which is based on the logic "if this happens, I will do it, if not, I will do it". See: #!/bin/sh # # (c) 2016 -…
-
1
votes1
answer461
viewsQ: How to make condition receive a parameter followed by an argument
I’ve been trying to create a structure if..else with a parameter passing. See: Example $ opt-get -i pacote.tgz Yes, I’m creating something similar to tool apt-get of the Operating System Debian. I…
-
0
votes0
answers212
viewsQ: How to change environment variable path $HOME to another?
The intention is to load with you all "created or downloaded" files, and reassemble it in any Livecd distro, leaving it as the default directory. Note that, the essential in this logic of reasoning…
-
3
votes2
answers7992
viewsA: Find and Replace Multiple Words Inside a File
Test(Requires Terminal/Console - Linux/Unix) Create a filing cabinet text, with the following content: man, day, sun. Now, open your console terminal, paste or enter the command below: for troca in…
-
4
votes2
answers7992
viewsQ: Find and Replace Multiple Words Inside a File
I want to develop a script which will replace any words in filing cabinet. I know what I can do with the command(s) below: $ tr 'ABC' '123' < arquivo.txt > novo-arquivo.txt or $ sed…
-
0
votes1
answer109
viewsA: Mount Dynamic Playlist With Select Option
I managed to do it this way .. <br> <br> <form name = "playlist"> <select name = "selecao" multiple size = "10"> </select> </form> /* Acrescente nestas variáveis…
-
0
votes1
answer109
viewsQ: Mount Dynamic Playlist With Select Option
I intend to create several "Play List" using an element select, instead of leaving it in the body of html document, want to put in a file "js" external, and call each "Play List" through a "Search…
-
1
votes2
answers186
viewsA: Convert File Names to Alphabet Letters
The comment of Jjoao and the response of Lacobus got me to the shell-script: #!/bin/sh # # Por - Diego Henrique # # Programa - Renomear Arquivos Para Letras Do Alfabeto # # NOTA - Deve-se ter no…
-
2
votes2
answers186
viewsQ: Convert File Names to Alphabet Letters
Convert File Names to Alphabet Letters For example, I have several image/photo files in a directory, and I want to pass these long names of the respective images in names designated by letters of…
-
2
votes1
answer507
viewsQ: How to Format Each HTML Tag with Its Attributes in Assorted Colors?
A "picture" says more than many words is not true!? Then I invite you to see the: Example In this image we see some "tags" formatted in colors "red(red), brown(Maroon) and blue(Skyblue)" What I want…
-
0
votes1
answer614
viewsQ: What Way XPG FTP Access Via Javascript
You can access my free account on the XPG hosting server, through Javascript? I wonder if it is possible to make a connection with Javascript only with an FTP server(ftp://ftp.xpg.com.br), to "Send"…
-
1
votes1
answer367
viewsQ: Creating a Page Similar to Jsfiddle Site
Since I have to Open the favorite text editor to create HTML page in order to perform CSS and Jscript tests, I decided to create a personal page based on some aspects of third-party sites like…
-
1
votes1
answer75
viewsQ: How to Switch Between Table Values
Code <table border="1px" width="33%"> <th bgcolor="silver">Trocar de Posição</th> <tr> <td id="cel_01">Texto 1</td> </tr> <tr> <td…
-
-1
votes1
answer138
viewsQ: How to Submit Another Page Form
I’m applying Javascript in the address bar, to redirect Youtube video URL to https://youtubegomp3.com/? u=coloque_aqui_url_Youtube download "MP3". Ja on the Website https://youtubegomp3.com/, you…
javascriptasked Diego Henrique 2,916 -
1
votes1
answer179
viewsQ: How to Rank in a List, The Most Accessed Table Link
I am creating a dynamic table in Javascript to represent a set of favorite links that will be managed through HTML document. Example document.getElementById('resultado').innerHTML =[…
-
0
votes1
answer182
viewsA: How to add a bookmarklet with a specific favicon?
In this Q&A, the main intention was to find a way to only make the inclusion of a Favicon in the Bookmarklet. I bring two Script for such purpose in pure Javascript. Let’s see: Observe the…
-
3
votes2
answers1345
viewsQ: How to store and retrieve the previous URL within the Cookie
The whole script is in the bookmarks/bookmarks bar, named: Bookmarklet I’ve already drawn up the script. Behold: Before c/ referrer javascript: var URL = document.referrer; location.href = URL; Now…
-
6
votes1
answer182
viewsQ: How to add a bookmarklet with a specific favicon?
I made a little script bookmarklet and I’m trying to add a favicon, but I can’t. It is in this bookmarklet that I want to implement a favicon - keepvid.com // Juntar a url ativa na barra de…
-
1
votes1
answer417
viewsQ: Is there any way to insert events into the html element at runtime?
Imagine a single page input text, that is, a text field in the HTML document like this: <input value="digite aqui" type="text" id="el"/>. But I want to insert in this text field, through…
-
4
votes1
answer106
viewsQ: How to Detect DOM and API Resources
How to know if the browser supports certain methods, estates and events. Checking whether an object querySelector, querySelectorAll, addEventListener, classList exists via Javascript. I’ve been…
-
2
votes3
answers126
viewsQ: Transition from Javascript Evolution to Cross Browser
I see this need, that people like me self-taught, try to understand. The point is - Nowadays some Features are already supported by major browsers HTML5, CSS3, DOM, Apis and Ecmascript... being very…
-
0
votes2
answers61
viewsQ: How to Make Case/Swictch Paged Control
Okay, here’s the thing - I’m developing a new personal project, and it’s necessary to control the buttons Previous | Next used at the base Switch/Case, I’m trying to bring numbers to life. Show him…
javascriptasked Diego Henrique 2,916 -
0
votes2
answers70
viewsA: back the click counter signaling where it stopped
In addition to the response of @Sergio I leave another alternative, with a brief modifying in my Source Code included in the Question. This script in turn, it works on any version of browsers from,…
-
0
votes1
answer75
viewsQ: Make Number Change In Descending Order
I want to create an automatic counter, which is marked in what number is every second. In order for that to happen, I have in mind that he must jump from one element <a> to another every…
javascriptasked Diego Henrique 2,916 -
0
votes2
answers77
viewsA: How to Rewind an Ordered String List
In addition to the reply of @Magichat, give another similar. Now allied with comment from @Miguel to the operation of my script, I was sure that after some time without abandoning code, would solve…
-
1
votes1
answer23
viewsQ: Which correct way to use Reverse(); in a given element id
I have in Document HTML a certain element that has ordinal numbers from 0 to 9. I’m trying to use the method reverse(); to reverse the order of numbers in my element. The logic should be: 1- capture…
javascriptasked Diego Henrique 2,916 -
2
votes2
answers78
viewsA: How to Style a Video Duration in Screenshot
Lasting a few more minutes in front of my PC, after the response of Renan that brought me clarity, how to get the desired effect. I bring another solution just positioning the HTML element span…
-
2
votes2
answers78
viewsQ: How to Style a Video Duration in Screenshot
How Can I Create CSS Rule to Show Video Duration in Screenshot Example This is the effect I try to give on my thumbnails. Assign An Markup on Screen Shot displaying the duration of a video I don’t…
-
0
votes2
answers77
viewsQ: How to Rewind an Ordered String List
Let’s say, I click the button More and I’m going forward to A - Z. Now I wish to go back to Z - A click on the button Least. Code: var i = 0; var j = 0; var n = 0; function prox(){ j++; i += 20;…
-
3
votes1
answer509
viewsQ: How to highlight a menu item when clicking Back or Next
This is possible, I know I am on the way, but before I decided to see with the community what can be done in this case, and then take the right course. Code function Selecionado(tag){ var item =…
-
0
votes2
answers382
viewsA: Detect stop() from Object Embed and return Alert()
Maybe this can help someone else, access - known-a-video-youtube-finished
-
0
votes2
answers1077
viewsA: How to calculate Video Time by getTime()
Added what @Guilherme Nascimento said about: Plug-ins The purpose of a plug-in is to extend the functionality of the HTML browser. HTML Helpers (Plug-ins) Auxiliary applications are computer…
-
2
votes2
answers1077
viewsQ: How to calculate Video Time by getTime()
Hello, everybody! In the Javascript exists method so-called getTime(); as well as the getDuration(); which gives us the duration of a video in question if aggregated to the <object/> and…
-
1
votes2
answers382
viewsQ: Detect stop() from Object Embed and return Alert()
To all, once again, I ask for help. I’m using a firefox with Mplayer Plugin What I want is to send an Alert to the end of a played video, that is, if the video player is inactive (stopped) to…
-
6
votes1
answer510
viewsQ: What Regular Expression to parse a URL
Well, I’m asking because I don’t know, but I’m trying... Doubt http://www.meusite.com.br/busca.html?nome=louvor+a+Deus Where: ?nome=louvor+a+Deus Should be removed or better replaced with the method…
javascriptasked Diego Henrique 2,916 -
0
votes1
answer168
viewsQ: Give an alternative right-click lock on an image
What ways can we hide the path of an image if the user clicks on it with the right mouse button?
javascriptasked Diego Henrique 2,916 -
0
votes2
answers905
viewsA: Make IFRAME or EMBED dynamically pick attribute of clicked link
OK! @Miguel. I also bring another alternative to do the <iframe/> dynamically charge the attribute href of the link. It occurred to me in the line of thought to replace the attribute src to…
javascriptanswered Diego Henrique 2,916 -
0
votes2
answers905
viewsQ: Make IFRAME or EMBED dynamically pick attribute of clicked link
What way a IFRAME or EMBED can be dynamically created with HREF clicked at that given moment, opening the object with its URL of that link on which it was triggered via mouse click. Code…
javascriptasked Diego Henrique 2,916 -
1
votes1
answer737
viewsQ: Make Variable with multiple names and a single Value String
It would be possible to create a single variable that has mutual influence by other names in it. In other words, different names for the same statement var, and in the end they will have the same…
-
0
votes1
answer38
viewsQ: Test Pages within 5 seconds loading pattern
I will select some sites by hand, to catalog and make available later and I have in mind to prioritize users that uses mini-modem USB 2G/3G on Personal Computer (PC), in which the connection is…
-
1
votes2
answers70
viewsQ: back the click counter signaling where it stopped
I tried to create a progressive and regressive counter to mark on what tag this stopped. Code el = document.getElementsByTagName('a') var x = 0, y = 0; document.getElementById('menos').onclick =…
-
0
votes2
answers385
viewsA: Pagination effect
Still with the reply of @rodorgas I had a certain disappointment in a particular browser(didn’t work), so I decided to search a little more, to know how I could develop a flexible script, for all…
-
1
votes2
answers385
viewsQ: Pagination effect
Observe paginated websites and blogs in the header or footer. When triggered the Button Anterior or Próximo, is highlighted in bold the numeric link, signaling the page where the user is currently.…
-
-1
votes1
answer553
viewsQ: redirect 404 error page with Javascript
I want to know how I can redirect a message from error 404 for the user. In this case I need an example script, and how to use. I’ll simplify the problem a little. The error 404 means that the…
javascriptasked Diego Henrique 2,916 -
2
votes1
answer122
viewsQ: Creating String Paging with Javascript
I’m creating a code for how to paginate the contents of a new String(); using Javascript, notice in advance, which is a runtime pagination compared to a pagination performed by ASP or PHP. It…
-
0
votes2
answers1680
viewsA: Form Action (Form’s Action) and Submit (Submit) Button
I am here to supplement the answer because I believe that more people have searched for the answer to this question in a context of a URL and Submit parameter. It is common to pass parameters to a…
-
1
votes2
answers1680
viewsQ: Form Action (Form’s Action) and Submit (Submit) Button
I am trying to unravel the mystery, when the user clicks on the "Submit" button, the content of the form is sent to another file. The attribute action defines the name of the file to which to send…
-
1
votes2
answers91
viewsQ: Erasing bottom lines up
I’m using the method innerHTML(); to display 60 lines on the page. As soon as, I need to delete 20 to 20 lines à every click on the button. Complete source code: for (i = 0; i <= 60; i += 1) {…
-
1
votes1
answer1326
viewsQ: How to invoke function at the first click of the button and another at the second click
How do I call the first function within the first click of the button, by event ondblclick(); and the second function at the second click of the same button. I imagine invoking the function of the…