CHANGE BACKGROUND PHOTO WITH FORM
How do I make an change background photo with form?
I wrote a jquery code to change background photo by using val() method .. You can write any photo link in internet to make it background photo of page ... What is a change background photo with form? How do you make a change background photo with form? This script and codes were developed by Vedat Sözen on 27 November 2022, Sunday.
CHANGE BACKGROUND PHOTO WITH FORM - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CHANGE BACKGROUND PHOTO WITH FORM</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <head>
<title></title>
<meta charset="utf-8">
<link rel="stylesheet" href="stil.css">
<link href='https://fonts.googleapis.com/css?family=Cuprum' rel='stylesheet' type='text/css'>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.2.min.js"></script>
<script src="https://www.bitstorm.org/jquery/color-animation/jquery.animate-colors-min.js"></script>
<script src="stil.js"></script>
</head>
<body>
<div id="container">
<div id="menu">
<input type="text"><button>WRITE BACKGROUND IMAGE URL AND CLICK</button>
</div>
<div id="slogan">ENTER YOUR IMAGE URL TO SEE IT AS BACKGROUND IMAGE</div>
</div>
</body>
</html> <script src="js/index.js"></script>
</body>
</html>
CHANGE BACKGROUND PHOTO WITH FORM - Script Codes CSS Codes
body {
background-image:url("https://unsplash.imgix.net/reserve/NxxLccbqQdGtNc7xJ43e_ancestral-home.jpg?q=75&fm=jpg&w=1080&fit=max&s=e132fbaa848cff62e31800dc1b3056be");
background-size:100%;
background-attachment:fixed;
box-sizing:border-box;
}
#container {
margin:auto;
height:500px;
width:100%;
box-sizing:border-box;
}
#menu {
margin:auto;
height:50px;
width:1000px;
text-align:center;
line-height:50px;
}
#menu ul { list-style:none;}
#menu ul li {
display:inline;
font-family:Cuprum;
margin-right:10px;
font-size:20px;
color:black;
padding:10px;
letter-spacing:5px;
}
#menu ul li:hover { color:green; cursor:pointer;}
#slogan {
margin:auto;
margin-top:200px;
height:100px;
width:800px;
text-align:center;
font-family:Cuprum;
font-size:30px;
color:whitesmoke;
line-height:50px;
border:1px solid whitesmoke;
letter-spacing:10px;
}
CHANGE BACKGROUND PHOTO WITH FORM - Script Codes JS Codes
$(document).ready(function(){
$("button").click(function(){
var gelen = $("input").val();
alert(gelen)
$("body").css("background-image","url(" + gelen + ")");
});
});
Developer | Vedat Sözen |
Username | vedatsozen |
Uploaded | November 27, 2022 |
Rating | 3 |
Size | 2,389 Kb |
Views | 12,144 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
SIMPLE ANIMATION | 1,774 Kb |
MATERIAL DESIGN BUTTON ANIMATION | 2,270 Kb |
HOW TO CHANGE BACKGROUND IMAGE OF DIVS | 2,376 Kb |
SIMPLE PROFILE PAGE by JAVASCRIPT | 2,050 Kb |
Drop Down Menu | 2,509 Kb |
MOBILE PHONE PAGE WITH SIMPLE ANIMATION | 2,479 Kb |
LOADING ANIMATION | 1,974 Kb |
SIMPLE PHOTO SLIDER | 2,114 Kb |
SIMPLE PHOTO SLIDER | 2,391 Kb |
CLICKABLE MENU .. | 2,592 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
GLSL Hills | Ykob | 6,991 Kb |
Css color for svg | Ademilter | 2,392 Kb |
Example SVGZ Data URI | Joeyhoer | 2,981 Kb |
Zip Button test | Lje7462 | 1,932 Kb |
Mario | Takaneichinose | 3,902 Kb |
Simple content swap | Snografx | 1,859 Kb |
Sassy Buttons | Elyseholladay | 2,299 Kb |
Custom Checkbox and radio inputs SCSS | Rgfx | 3,367 Kb |
The Fantastic Mr Fox | MalZiiirA | 10,435 Kb |
Scroll Arrow | Robooneus | 4,437 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!