вот такой код пишу
Код:
//scrol
scrollbar2.setScrollTarget ( textfield3) ;// links scrollbar Componement to the textfield
scrollbar2.setSize(443, textfield3._height); // code hint ( width, height)
scrollbar2.move( textfield3._x + textfield3._width , textfield3._y ) // code hint ( x, y)
//content
var styles:TextField.StyleSheet = new TextField.StyleSheet();
textfield3.styleSheet = styles;
textfield3.html = true; // Set html property to true
var myVars:LoadVars = new LoadVars();
myVars.onData = function(myStr:String):Void {
if (myStr != undefined) {
textfield3.text = myStr;
}
};
myVars.load("content/testContent.html");
//css
var myStyle = new TextField.StyleSheet();
myStyle.load("style.css");
myStyle.onLoad = function() {
textfield3.styleSheet = myStyle;
};
//java script
//var myURL:String = "http://foo.com";
getURL("javascript:popup();");
Код:
* {
margin:0;
padding:0;
}
body {
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
color:#88522e;
}
a {
color:#0c2e6e;
font-weight:bold;
}
a:hover {
color:#FF0000;
font-weight:bold;
}
h1 {
color:#88522e;
font-style:italic;
font-size:32px;
}
Код:
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
return false;
}
Код:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><script type="text/javascript" src="js.js"></script><link href="style.css" rel="stylesheet" type="text/css" /><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><h1>title goes here</h1><a href="content/popup.html" onClick="return popup(this, 'notes')"><img src="images/wedding.jpg" width="368" height="221" /></a><p>test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content test content </p></body></html>