Questions tagged as 'html'

1
answer

How to force the size of a table in HTML?

I have a table with a background image and I would like to somehow set the size of this table so that the image appears completely. So far you need to contain data in the table, but when you have little data it cuts and, depending on the quan...
asked by 10.08.2017 / 21:04
1
answer

How to translate website automatically

I have a site in Portuguese written in PHP and HTML. I would like to offer this site to other countries, but without having to translate all content manually. So I would like a tool that translates the site automatically when the person accesses...
asked by 11.08.2017 / 17:28
3
answers

Display success message once in loop for

I have the code: for ($i=0; $i < count($descricao); $i++) { $id_caixa_hoje = $linha['id_caixa_hoje']; $valor_formatado[$i] = abs($valor[$i]); $inserir = mysql_query("INSERT INTO caixa_valores_extras (id_caixa...
asked by 14.09.2017 / 18:11
2
answers

Doubt about where to put the JS script

I'm working on a dashboard for a website where you have two JS functions at the bottom of the page that will only be used on a page that will be opened in a modal. On this site there is also a file dedicated only to scripts. I would like t...
asked by 15.08.2017 / 15:30
2
answers

Tags? and ? interpreted as html comment

I'm having problems with an application where some <? ?> tags are being confused with html comments. Follow the code snippet. <h3><?= $cadastros->num_rows(); ?> registro(s)</h3> <? foreach($cadastros -> resul...
asked by 16.08.2017 / 00:10
2
answers

C # returns an HTML string

Good, I use the following code to convert a numeric value according to the user's culture: value="@(Model.KnowAcquisition.Cost.HasValue ? Model.KnowAcquisition.Cost.Value.ToString("n2", CultureInfo.CurrentCulture).ToString() : string.Emp...
asked by 10.10.2017 / 18:45
2
answers

Is it possible to read a .txt file in JavaScript?

If it is possible, how would you do it? I have a file called version.txt , and I need JavaScript to read it and display its content on the screen. Does anyone have any idea how I would do this? PS: please I would like a code without using json...
asked by 13.10.2017 / 21:12
2
answers

How to change the color of the text?

<html> <head> <title>Efeito digitar em página web</title> <script type="text/javascript"> var posicao = 0; var mensagem = "Sua mensagem aqui "; //Esse texto...
asked by 03.08.2017 / 17:05
1
answer

How to change the face of the site when accessed by the mobile?

Situation: I have a designer site for large screens , I created a template for mobile, type an application. So I want this template to be shown only when accessed by the mobile, instead show the conventional. How do I do this? Is there an...
asked by 04.08.2017 / 03:26
1
answer

Reuse function in javascript

I have the following question, I want to manipulate a specific value in my function, where the assigned value is not fixed but dynamic (where I can change it as needed). function mostrardiv() { document.getElementById("teste").style.d...
asked by 23.08.2017 / 22:07