How to add a text-button (like a hyperlink)?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Daniish

    How to add a text-button (like a hyperlink)?

    Hello,

    I want to include a bit of text in my Google Map Infowindow - that
    when clicked maximises the infowindow.

    This is the code for maximising the infowindow
    map.getInfoWind ow().maximize() ;

    the text could be something as simple as:
    "Open"

    How do i add that to the following line of Javascript:
    var info = '<div id="info" style="text-align:left";><h 3>' + title + '</
    h3><br>' + date + '</div>';


    Many thanks for your help
  • SAM

    #2
    Re: How to add a text-button (like a hyperlink)?

    Daniish a écrit :
    Hello,
    >
    I want to include a bit of text in my Google Map Infowindow - that
    when clicked maximises the infowindow.
    >
    This is the code for maximising the infowindow
    map.getInfoWind ow().maximize() ;
    >
    the text could be something as simple as:
    "Open"
    >
    How do i add that to the following line of Javascript:
    var info = '<div id="info" style="text-align:left";><h 3>' + title + '</
    h3><br>' + date + '</div>';

    var info = '<div id="info" style="text-align:left";><h 3>' + title +
    '<\/h3><br>' + date + '<br>' +
    '<button onclick="map.ge tInfoWindow().m aximize();">zoo m<\/button>' +
    '<\/div>';


    var info = '<div id="info" style="text-align:left";><h 3>' + title +
    '<\/h3><br>' + date + '<br>' +
    '<a href="javascrip t:map.getInfoWi ndow().maximize ();">zoom<\/a>' +
    '<\/div>';


    var info = '<div id="info" style="text-align:left";><h 3>' + title +
    '<\/h3><br>' + date + '<br>' +
    '<button onclick="map.ge tInfoWindow().m aximize();" '+
    'title="click to zoom">+<\/button>' +
    '<\/div>';


    var info = '<div id="info" style="text-align:left";><h 3>' + title +
    '<\/h3><br>' + date + '<br>' +
    '<a href="javascrip t:map.getInfoWi ndow().maximize ();"' +
    'title="click to zoom" "style="tex t-decoration:none ">[+]<\/a>' +
    '<\/div>';


    etc ...

    --
    sm

    Comment

    • Daniish

      #3
      Re: How to add a text-button (like a hyperlink)?

      That's a brilliant answer - thanks for the choice :)

      Comment

      • Thomas 'PointedEars' Lahn

        #4
        Re: How to add a text-button (like a hyperlink)?

        Daniish wrote:
        That's a brilliant answer - thanks for the choice :)
        Too bad that you did not quote the minimum of it.


        PointedEars
        --
        Use any version of Microsoft Frontpage to create your site.
        (This won't prevent people from viewing your source, but no one
        will want to steal it.)
        -- from <http://www.vortex-webdesign.com/help/hidesource.htm>

        Comment

        • Daniish

          #5
          Re: How to add a text-button (like a hyperlink)?

          What ???

          Comment

          • Thomas 'PointedEars' Lahn

            #6
            Re: How to add a text-button (like a hyperlink)?

            Daniish wrote:
            What ???
            <http://www.jibbering.c om/faq/#FAQ2_3>
            <http://www.jibbering.c om/faq/faq_notes/clj_posts.html# ps1Post>


            HTH

            PointedEars
            --
            var bugRiddenCrashP ronePieceOfJunk = (
            navigator.userA gent.indexOf('M SIE 5') != -1
            && navigator.userA gent.indexOf('M ac') != -1
            ) // Plone, register_functi on.js:16

            Comment

            Working...