Results 1 to 8 of 8

Thread: html code in vb code !

Threaded View

  1. #1

    Thread Starter
    Addicted Member RoYeti's Avatar
    Join Date
    Dec 2005
    Posts
    165

    Arrow html code in vb code !

    hy i want my program to open in webbrowser1 a webpage from a html code. i don`t know how to put the code in vb code. the html code is
    HTML Code:
    <SCRIPT type=text/javascript>
    id = 5406;
    width = 468;
    height = 60;
    
    border = "000000";
    background = "000000";
    link = "00FFFF";
    text = "FFFFFF";
    </SCRIPT>
    <SCRIPT src="http://web.to.ro/textad.js" type=text/javascript>
    </SCRIPT>
    and i want to be like this :
    VB Code:
    1. Private Sub Form_Load()
    2.     WebBrowser1.Navigate "about:" & _
    3.        "<html>" & vbCrLf & _
    4.        "<head>" & vbCrLf & _
    5.        "</head>" & vbCrLf & _
    6.        "<body>" & vbCrLf & _
    7.        "<p><a target=" & Chr$(34) & "_blank" & Chr$(34) & "href=" & Chr$(34) & _
    8.        "http://www.vbforums.com" & Chr$(34) & ">Visit My Site</a></p>" & vbCrLf & _
    9.        "</body>" & vbCrLf & _
    10.        "</html>"
    11. ' or load your ad page
    12. End Sub
    Where i can learn to use this part ?
    Last edited by RoYeti; May 7th, 2006 at 05:59 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
  •  



Click Here to Expand Forum to Full Width