Questions tagged as 'html5'

1
answer

Listen and perform action

Assuming I have a tag where values are commonly changed on my page, for example: <p id="valor"></p> What do I have to do in javascript without jquery to stay listening to this change all the time and take action with every cha...
asked by 17.07.2018 / 23:24
1
answer

Error in columns with sortable, how to solve?

I have a 3-column layout containing cards, I need these cards to be dragged from one column to another and rearranged within a single column. I've got jQuery to make the cards draggable, but I can only drag from column 2 and column 3 to colum...
asked by 06.07.2018 / 17:25
0
answers

Do you doubt how to create a custom map for web platforms?

I would like to ask for help in creating an interactive map, which I would be placing quadrants (example: x_y.png) and mounting to display to the user, but I am doubtful about which mechanisms to use, as I have no experience in subject and never...
asked by 02.07.2018 / 12:24
0
answers

Clear browser address bar without refresh in Django

Personal oops! I'm having a problem, I need to clear the URL of the browser when I sign in, I need it to place the default URL. In the image you see that the URL is / logout /, I want the login URL which is / accounts / login / VLW FOR HELP \...
asked by 05.07.2018 / 19:40
1
answer

Help with date comparison in Java Script [duplicate]

I need to compare the final date of a service contract to put in a report that will have 4 status types: 1- contrato em vigor (Verde) 2- contrato próximo ao vencimento (Amarelo) 3- contrato vencido (Vermelho) 4- contrato com prazo indetermin...
asked by 27.06.2018 / 17:19
0
answers

Favicon and audio do not work

This is the code: <!DOCTYPE html> <html lang="pt-br"> <head> <meta name="author" content="Tomás Ricardo"> <audio autoplay> <source src="audio_de_erro.mp3" type="audio/mpeg"> <source src="audio_d...
asked by 27.06.2018 / 15:42
1
answer

Doubt with Flex-Box CSS

I'm stuck with a flex display question in this code snippet: link I want the box to stick to the top of the page, regardless of whether the menu scrolls or not. Let there be no margin. I tried margin: 0 in the nav element, but it did not wo...
asked by 28.06.2018 / 01:09
0
answers

Display .tiff images in html

I need to display a modal image, the problem is that it is .tiff I've researched in several places, and I could not find a solution. Can anyone help?     
asked by 25.06.2018 / 03:25
2
answers

___ ___ erkimt Img in changing header on each page load ______ qstntxt ___

I'm starting a new project in HTML5 and I would like to put a background img in the header, in vdd I want to put 4 images and I want them to change on every page refresh, I do not want a slider, site see an image and in each loading of the page img change. I'm starting the project now and have not done anything yet so I have no code to post. Does anyone know something similar?

    
______ azszpr256954 ___

If you use only JavaScript, I would suggest the following:

Rename background files with names with sequential numbers:

%pre%

Then after your %code% , call the script:

%pre%

Note: Because images will be called by random numbers, it may be that the same image is loaded after a new page load. If avoiding this is of importance , you can create a %code% to prevent the same image from being loaded again at the next page load. For this the code changes:

%pre%

SIMULATION

  

Code only for test without refresh on page. Use one of the codes   above.

In the example below, click the Refresh button to change the background of %code% :

%pre% %pre% %pre%
    
______ azszpr256951 ___

It can be with PHP as well. Try it

Put this in PHP:

%pre%

And this in css:

%pre%

Important, the name of the images should be "bg-0X.jpg" ok, if you want to add more imgs just put in the Array 'bg-05.jpg' and save the img in the folder.

[] 's

    
___

I'm starting a new project in HTML5 and I would like to put a background img in the header, in vdd I want to put 4 images and I want them to change on every page refresh, I do not want a slider, site see an image and in each loading of the page...
asked by 21.11.2017 / 00:57
0
answers

Error loading php page into online site

I did the whole site on my computer testing with xamp. But when I went online, there were some problems loading 3 similar bank access pages. <?php require_once('db.class.php'); $objdb = new db(); $link = $objdb->conecta_mysql(); $sql...
asked by 23.06.2018 / 19:44