Git Product home page Git Product logo

nearme's Introduction

Ex04 Places Around Me

Date: 14-04-24

AIM

To develop a website to display details about the places around my house.

DESIGN STEPS

STEP 1

Create a Django admin interface.

STEP 2

Download your city map from Google.

STEP 3

Using <map> tag name the map.

STEP 4

Create clickable regions in the image using <area> tag.

STEP 5

Write HTML programs for all the regions identified.

STEP 6

Execute the programs and publish them.

CODE

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{margin:0;}
    </style>
    <script>
        function coordinate(event){
            let x= event.clientX;
            let y=event.clientY;
            document.getElementById('text1').value=x;
            document.getElementById('text2').value=y;
        }
    </script>
</head>
<body>
    <h1 align="center" style="color: red;">EXP4</h1> <br>
    <h2 align="center" style="color: green;">Kurapati Vishnu Vardhan Reddy(212223040103)</h2>
    <br>
   <img src="map.png" width="1485" height="650" alt="" 
    usemap="#MapNew" onmousemove="coordinate(event)"> 
    <map name="MapNew">
        <area shape="rect" coords="480,347,622,390" href="https://saveetha.ac.in" alt="" title="Saveetha">
        <area shape="rect" coords="848,402,964,434" href="https://dmice.ac.in/" alt="" title="Dmi">
        <area shape="rect" coords="400,163,520,190" href="https://apollocollegeofeducation.ac.in/" alt="" title="Apollo College Of Education">
        <area shape="rect" coords="1365,110,1484,137" href="https://www.sreesasthaarts.in/" alt="" title="sree sastha arts">
    </map>
    <br>
   <center> x-coordinate
    <input type="text" name="" id="text1"></center>
    <br>
    <br>
   <center> y-coordinate
    <input type="text" name="" id="text2"></center>
</body>
</html>

OUTPUT

alt text

RESULT

The program for implementing image maps using HTML is executed successfully.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.