473,407 Members | 2,315 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

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.getInfoWindow().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";><h3>' + title + '</
h3><br>' + date + '</div>';
Many thanks for your help
Jun 27 '08 #1
5 1360
SAM
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.getInfoWindow().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";><h3>' + title + '</
h3><br>' + date + '</div>';

var info = '<div id="info" style="text-align:left";><h3>' + title +
'<\/h3><br>' + date + '<br>' +
'<button onclick="map.getInfoWindow().maximize();">zoom<\/button>' +
'<\/div>';
var info = '<div id="info" style="text-align:left";><h3>' + title +
'<\/h3><br>' + date + '<br>' +
'<a href="javascript:map.getInfoWindow().maximize();"> zoom<\/a>' +
'<\/div>';
var info = '<div id="info" style="text-align:left";><h3>' + title +
'<\/h3><br>' + date + '<br>' +
'<button onclick="map.getInfoWindow().maximize();" '+
'title="click to zoom">+<\/button>' +
'<\/div>';
var info = '<div id="info" style="text-align:left";><h3>' + title +
'<\/h3><br>' + date + '<br>' +
'<a href="javascript:map.getInfoWindow().maximize();"' +
'title="click to zoom" "style="text-decoration:none">[+]<\/a>' +
'<\/div>';
etc ...

--
sm
Jun 27 '08 #2
That's a brilliant answer - thanks for the choice :)
Jun 27 '08 #3
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>
Jun 27 '08 #4
What ???
Jun 27 '08 #5
Daniish wrote:
What ???
<http://www.jibbering.com/faq/#FAQ2_3>
<http://www.jibbering.com/faq/faq_notes/clj_posts.html#ps1Post>
HTH

PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jürgen Holly | last post by:
Hi! I have the following xml-node: <docu> <p>Sample: <b>bold</b></p> <p>and text in <i>italic</i></p> </docu> I need to create a text-file, so I set the output-mode to text.
2
by: Martin | last post by:
Hallo, can you help me writing a generic xslt transformation (useable with xsql from oracle)? The problem is how to get the escaping characters .... === INPUT-File in.xml <?xml version =...
3
by: Xerxes | last post by:
Hi, I need help in setting up a page where the text wraps around an image. Right now, I am using table, with text in one <td> and the image in the adjacent <td>. The problem is when the text is...
2
by: Macsicarr | last post by:
Hi All Wonder if you could help me. I have created a CMS system that allows the user to enter text and pic 'tags' for their own About us page, eg text.... text.... text.... text.......
2
by: Jiri Palecek | last post by:
I have a question on web authoring (probably HTML+CSS). Is it somehow possible to put two words above each other inside a paragraph so the result would be valid and render at least in Mozilla? I...
0
by: TadPole | last post by:
I am using FOP to create PDF documents. I have the problem where I need to create line of text on a document in a certain line (absolute position), then the rest of the text needs to follow...
8
by: Mikey | last post by:
I have an XML document as follows: <Menu> <Group> <Item Text="About Us" AccessRoles="All"> <Group> <Item Text="Option 1" AccessRoles="All" /> <Item Text="Option 2" AccessRoles="All" /> <Item...
14
by: Joe | last post by:
Hello All: I am trying to dynamically populate a web page with literal content and controls (textboxes and checkboxes (and eventually two buttons - the buttons do not appear in the code yet). I...
3
by: bbepristis | last post by:
Hey all I have this code that reads from one text file writes to another unless im on a certian line then it writes the new data however it only seems to do about 40 lines then quits and I cant...
16
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.