I'm the one who's sorry. I have no clue as to what your showing me. I understand and appriciate all the effort and work you done for me, but I'm really confused now. Am I supposed to enter the code below into my code? I don't understand the "From Here" "To Here" code and how it fits into my map. I'm fairly certain I don't want to use your .js file as it has stuff that doesn't fit my map. OK, if I'm supposed to enter the code below in my html, then what coding should var point # 6 look like to have it have 2 tabs with any different info in each? I haven't been able to view your web site you mention above, as it's not working yet.
www.tiltonrealty.com/Test-Gil-Markers-04.html On Oct 6, 11:54 am, Lan Mind <[EMAIL PROTECTED]> wrote: > I'm sorry I accidentally hit send prematurely, here is the total of my > post: > > As far as getting your second tab different from your first tab see my > javascript: > > var html1 ="<div class='info_style_bold'>" + name + "<br />" + "<br />" > > + "</div>" + "<div class='info_style'>" + address + "<br />" + town > + "," + " " + state + "<br />" + "<br />" + "</div>"; > > var html2 = "<div class='info_style'>" + "Operator:" + " " + operator > + "<br />" + "<br />" > > var firsttab = html1 + '<div class="info_style">' + 'Directions: > <a href="javascript:tohere('+m+')">To here</a> - > <a href="javascript:fromhere('+m+')">From here</a>' + '</div>'; > > var secondtab = html2 + '<div class="info_style">' + 'Directions: > <a href="javascript:tohere('+m+')">To here</a> - > <a href="javascript:fromhere('+m+')">From here</a>' + '</div>'; > > GEvent.addListener(marker, 'click', function() > { > // FYI: All info window tabs get sized to the size of the largest > tab. > marker.openInfoWindowTabsHtml([new GInfoWindowTab(label1,firsttab), > new GInfoWindowTab(label2,secondtab)]); > > }); > > Notice in ([new GInfoWindowTab(label1,firsttab), & > new GInfoWindowTab(label2,secondtab)]) firsttab and secondtab are > different variables declared above using different HTML strings. > > All the above starts on line 72:http://www.dockhawk.com/javascript.js > ---------------------------------------------------------------------- > > You can change the tab names, simply change their variable > declarations the same way you need to change your secondtab var > declaration. > > On Oct 6, 11:43 am, Lan Mind <[EMAIL PROTECTED]> wrote: > > > > > As fa as getting your second tab different from your first tab see my > > javascript: > > > var html1 ="<div class='info_style_bold'>" + name + "<br />" + "<br />" + > > "</div>" + "<div class='info_style'>" + address + "<br />" + town > > > + "," + " " + state + "<br />" + "<br />" + "</div>"; > > > var html2 = "<div class='info_style'>" + "Operator:" + " " + operator > > + "<br />" + "<br />" > > > GEvent.addListener(marker, 'click', function() > > { > > // FYI: All info window tabs get sized to the size of the largest > > tab. > > marker.openInfoWindowTabsHtml([new GInfoWindowTab(label1,firsttab), > > new GInfoWindowTab(label2,secondtab)]); > > > }); > > > On Oct 6, 11:23 am, Gil <[EMAIL PROTECTED]> wrote: > > > > Nope, I can't figure out how to stop the 2nd Tab from showing the same > > > thing as the 1st Tab. I've tried a lot of coding from examples on var > > > point # 6 and # 1. # 1 currently is in Utah but only showing the > > > shadow. I'm farly sure I need to add <div> tags in the var points and > > > have tried [ ]s etc. to separate the info, but nothing worked. Once I > > > can get different information such as a photo into the second tab, > > > will I be able to change the Tab names on different markers? Or do I > > > have to create more Tab names and designate which ones to use in the > > > var points? > > > > My current map is atwww.tiltonrealty.com/Test-Gil-Markers-04.html > > > > On Oct 6, 9:53 am, Gil <[EMAIL PROTECTED]> wrote: > > > > > WOW, that part is working and all it needed was a space after new, > > > > Thank you. I can't imagine how you noticed it. OK, now my windows > > > > Tab 1 & Tab 2 are showing the same thing so I'm going to work on what > > > > I have to do to separate the info. So far so good. I'm really close > > > > now. > > > > > On Oct 6, 7:53 am, Ralph Ames <[EMAIL PROTECTED]> wrote: > > > > > > > OK, none of my info-windows will open now... > > > > > > This > > > > > marker.openInfoWindowTabsHtml([new > > > > > GInfoWindowTab(label1,firsttab),newGInfoWindowTab(label2,secondtab)]); > > > > > > should be this > > > > > marker.openInfoWindowTabsHtml([new GInfoWindowTab(label1,firsttab),new > > > > > GInfoWindowTab(label2,secondtab)]); > > > > > > Ralph- Hide quoted text - > > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to Google-Maps-API@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---