問題:css、html、head、bodyのコンテンツを指定するマスターページがあるため、フローティングdivテクニックを使用できず、ajax/aspのみのルートを通過する必要があります。このテーマに関してオンラインで見つけたのは、これを実装するのに問題がある人だけですが、実際に機能するサンプルコードはありません。
jtricks.comからjQueryベースのフローティングdivメニューを使用しようとしましたが、手順はasp.netファイルではなくhtmlファイルに対するものであり、ページの読み込みでエラーが発生しました。
<script type="text/javascript" src="specify script file URL here">
</script>
<div id="floatdiv" style="
position:absolute;
width:200px;height:50px;top:10px;right:10px;
padding:16px;background:#FFFFFF;
border:2px solid #2266AA;
z-index:100">
This is a floating javascript menu.
</div>
<script type="text/javascript">
floatingMenu.add('floatdiv',
{
// Represents distance from left or right browser window
// border depending upon property used. Only one should be
// specified.
// targetLeft: 0,
targetRight: 10,
// Represents distance from top or bottom browser window
// border depending upon property used. Only one should be
// specified.
targetTop: 10,
// targetBottom: 0,
// Uncomment one of those if you need centering on
// X- or Y- axis.
// centerX: true,
// centerY: true,
// Remove this one if you don't want snap effect
snap: true
});
</script>
Ajaxを介してTabContainerまたはDragPanelでフローティングdivを使用する際のサンプルコードを提供してください。
ありがとう!:)