iFrames

  • VB6

Es gibt 14 Antworten in diesem Thema. Der letzte Beitrag () ist von salle.

    ja ich möchte einen adresse in GoogleMaps anzeigen lassen ohne Rahmen
    hier der Link zum Beispiel:
    <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.de/maps?f=q&amp;source=s_q&amp;hl=de&amp;geocode=&amp;q=hamburg&amp;sll=51.151786,10.415039&amp;sspn=13.523402,39.506836&amp;ie=UTF8&amp;hq=&amp;hnear=Hamburg&amp;t=h&amp;z=10&amp;ll=53.553815,9.991575&amp;output=embed"></iframe><br /><small><a href="http://maps.google.de/maps?f=q&amp;source=embed&amp;hl=de&amp;geocode=&amp;q=hamburg&amp;sll=51.151786,10.415039&amp;sspn=13.523402,39.506836&amp;ie=UTF8&amp;hq=&amp;hnear=Hamburg&amp;t=h&amp;z=10&amp;ll=53.553815,9.991575" style="color:#0000FF;text-align:left">Größere Kartenansicht</a></small>
    Kannst du nicht direkt den EmbedCode laden?
    So z.B.:

    Visual Basic-Quellcode

    1. Option Explicit
    2. Private Sub Form_Load()
    3. WebBrowser1.Navigate "about:blank"
    4. DoEvents
    5. WebBrowser1.Document.Body.innerHTML = "<iframe width=""425"" height=""350"" frameborder=""0"" scrolling=""no"" marginheight=""0"" marginwidth=""0"" src=""http://maps.google.ch/maps?hl=de&amp;q=php+seite+einbinden&amp;ie=UTF8&amp;ll=47.052094,8.246113&amp;spn=0.724419,0.753364&amp;output=embed""></iframe><br /><small><a href=""http://maps.google.ch/maps?hl=de&amp;q=php+seite+einbinden&amp;ie=UTF8&amp;ll=47.052094,8.246113&amp;spn=0.724419,0.753364&amp;source=embed"" style=""color:#0000FF;text-align:left"">Größere Kartenansicht</a></small>"
    6. End Sub



    Gruss
    Pascal
    ja die ausgabe() ist deklariert als Variant, aber das einbinden in die URL funktioniert nicht... mein Text sieht jetzt so aus:

    WebBrowser1.Document.Body.innerHTML = "<iframe width=""425"" height=""350"" frameborder=""0"" scrolling=""no"" marginheight=""0"" marginwidth=""0"" src=""http://maps.google.de/?ie=UTF8&amp;hl=de&amp;f=d&amp;q=Musterstraße+1b,+MusterPLZ+Musterort+nach+(ausgabe(7) + Chr$(32)+ausgabe(8),++ausgabe(4)&amp;saddr=Musterstraße+1b,+MusterPLZ+Musterort&amp;daddr=(ausgabe(7) + Chr$(32)+ausgabe(8),++ausgabe(4)&amp;output=embed""</iframe>"
    Klappt irgendwie ncht ... hmm mit & hab ich es auch probiert.

    Visual Basic-Quellcode

    1. WebBrowser1.Document.Body.innerHTML = "<iframe width=""425"" height=""350"" frameborder=""0"" scrolling=""no"" marginheight=""0"" marginwidth=""0"" src=""http://maps.google.de/?ie=UTF8&amp;hl=de&amp;f=d&amp;q=Musterstraße+1b,+MusterPLZ+Musterort+nach+(ausgabe(7) + Chr$(32)+ausgabe(8),++ausgabe(4)&amp;saddr=Musterstraße+1b,+MusterPLZ+Musterort&amp;daddr=" & (ausgabe(7) & Chr$(32) & ausgabe(8) & ausgabe(4) & "amp;output=embed""</iframe>"


    Variablen dürfen natürlich nicht in Anführungszeichen stehen..
    Grundlagen? :S


    Gruss
    Pascal