Jump to content

[Q] How can set a limit for body or image width in shell.explorer.2


blackman12
 Share

Recommended Posts

Func _GuiCTRLCreateWebPage($eX,$eY,$eW,$eH,$navigate="about:blank",$border = "none",$bgcolor = "green",$scroll = "auto",$face = "red",$base = "green",$dark = "black",$3d = "white",$arrow = "black",$highlight = "white",$shadow = "gray",$track = "white")
    $oIE = ObjCreate("Shell.Explorer.2")
    $html = GUICtrlCreateObj($oIE,$eX,$eY,$eW,$eH)
    $oIE.navigate($navigate)
    $oIE.document.body.style.border = $border
    $oIE.document.body.bgcolor = $bgcolor
    $oIE.document.body.scroll=$scroll
    $oIE.document.body.style.scrollbarFaceColor=$face
    $oIE.document.body.style.scrollbarBaseColor=$base
    $oIE.document.body.style.scrollbarDarkShadowColor=$dark
    $oIE.document.body.style.scrollbar3dLightColor=$3d
    $oIE.document.body.style.scrollbarArrowColor=$arrow
    $oIE.document.body.style.scrollbarHighlightColor=$highlight
    $oIE.document.body.style.scrollbarShadowColor=$shadow
    $oIE.document.body.style.scrollbarTrackColor=$track
    $oIE.document.body.style.Width=100 ; it's here
    Return $oIE
EndFunc

i know css, html or js. and i tried many way for this. but anyone didnt work.

"$oIE.document.body.style.Width=100"

i want to set a limit for body or image width in shell.explorer.2, i tried

<img src="http://i.imgur.com/Hxehe.jpg" style="max-width:250px" alt="" />

but it didnt work.

Edited by blackman12
Link to comment
Share on other sites

auh meanwhile i tried this one but, same result:

$oIE.document.body.innerhtml = '<style type="text/css">body {width:400px;}</style>' & $mVeri[$l+1][2]

---

edit:

'<style type="text/css">body {width:100px;}img {max-width:100px;}</style>' & $mVeri[$l+1][2]

i tried to write a file as a .html, its work but when i try this in object, it doesnt work

Edited by blackman12
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...