Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Help A Noob!

  1. #1
    New to the CF scene
    Join Date
    Jan 2014
    Thanked 0 Times in 0 Posts

    Help A Noob!

    Hey everyone, I was hoping someone could help me out! I am trying to make a transparent banner on my home page. One that either fades away once clicked or is just transparent. Here is the home page:

    Click Here

    As you can see, its a map! Also here is the code

    <!DOCTYPE html>
    <html lang="en">
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
        <link rel="shortcut icon" href="ico/favicon.png">
        <link href='http://fonts.googleapis.com/css?family=Oswald:400,300,700' rel='stylesheet' type='text/css'>
          <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
             The below tags use relative URIs - the file should be run from a localhost
             or web server in order to render properly via an http or https request.
             More info: http://www.paulirish.com/2010/the-protocol-relative-url/
        <script src='//api.tiles.mapbox.com/mapbox.js/v1.6.0-beta0/mapbox.js'></script>
        <link href='//api.tiles.mapbox.com/mapbox.js/v1.6.0-beta0/mapbox.css' rel='stylesheet' />
            body { margin:0; padding:0; }
            #map { position:absolute; top:0; bottom:0; width:100%; }
        <!-- Bootstrap core CSS -->
        <link href="css/bootstrap.css" rel="stylesheet">
        <!-- Custom styles for this template -->
        <link href="connectiveme.css" rel="stylesheet">
        <!-- Just for debugging purposes. Don't actually copy this line! -->
        <!--[if lt IE 9]><script src="../../docs-assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    	    <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
    Any help is greatly appreciated!
    Last edited by VIPStephan; 01-11-2014 at 10:32 PM. Reason: added code BB tags

  2. #2
    Supreme Master coder!
    Join Date
    Jun 2003
    Cottage Grove, Minnesota
    Thanked 1,168 Times in 1,159 Posts
    I don't understand the question.

    Would you rather just have the map NOT appear?

    It's an interactive map, so of course people will click on it, and it will disappear?
    That's what I don't understand.
    How frustrating would that be?

    ... and

    You're just showing us the header. There's a lot more HTML than just the header.

    Viewing the HTML source code, I see this one your main page:
        <div class="container" id="mapo">
          <div class="connectiveme">
            <!--// MAP //-->
            <div id='map'></div>
                // Visit https://www.mapbox.com/mapbox.js/overview/ for documentation and examples
                var map = L.mapbox.map('map', 'ericpark.gb6l4gce', {
        closeButton: true
                  .setView([33.690, -117.655], 5);
        </div><!-- /.container -->
    I'm wondering why your map is not contained within the map div .... <div id='map'></div>

    Are you experienced enough to edit the HTML or PHP involved in your website?

    Just out of curiousity, what happens if you do this:
        <div class="container" id="mapo">
          <div class="connectiveme">
            <!--// MAP //-->
            <div id='map'>
                // Visit https://www.mapbox.com/mapbox.js/overview/ for documentation and examples
                var map = L.mapbox.map('map', 'ericpark.gb6l4gce', {
        closeButton: true
                  .setView([33.690, -117.655], 5);
            </div><!-- /.map -->
          </div><!-- /.connectiveme -->
        </div><!-- /.container -->
    Maybe the map div ID has some properties in it that alter how it looks?

    Last edited by mlseim; 01-12-2014 at 03:54 AM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts