Guest Marcio Vidal Postado Janeiro 23, 2007 Denunciar Share Postado Janeiro 23, 2007 Ola!Me deram a missão de por o menu acompanhando quando baixamos o scroll. Estou um pouco confuso porque o menu esta feito em asp usando infragistic. Segue o codigo a ver se me ajudamSee....I have this code and i need put something to do menu follow scroll.I think in this javascript ...var Hoffset=200 // larguravar Voffset=160 //alturavar ieHoffset_extra=15var cross_obj= document.all.staticbuttonsfunction positionit(){var dsocleft=document.body.scrollLeftvar dsoctop=document.body.scrollTopvar window_width=document.body.clientWidth+ieHoffset_extravar window_height=document.body.clientHeightcross_obj.style.left=parseInt(dsocleft)+parseInt(window_width)-Hoffset - 5cross_obj.style.top=dsoctop //+parseInt(window_height)-Voffset}But where i put this in this webmenu?<ignav:ultrawebmenu id="Menu" runat="server" Font-Size="9pt" Font-Names="Microsoft Sans Serif" BackColor="#F0F0F0"BorderColor="#F0F0F0" BorderWidth="0px" WebMenuStyle="XPClient" SubMenuImage="ig_menuTri.gif" ScrollImageTop="ig_menu_scrollup.gif"ScrollImageBottomDisabled="ig_menu_scrolldown_disabled.gif" ScrollImageTopDisabled="ig_menu_scrollup_disabled.gif"ScrollImageBottom="ig_menu_scrolldown.gif" Cursor="Default"><HoverItemStyle BorderWidth="1px" BorderColor="Gray" BorderStyle="Solid" ForeColor="White" BackColor="DarkBlue"></HoverItemStyle><SeparatorStyle BackgroundImage="ig_menuSep.gif" CustomRules="background-repeat:repeat-x; "></SeparatorStyle><Items><ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""TargetFrame="panel" CssClass="" HoverClass="" Text="Arbol" ToolTip=""><Items><ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""TargetFrame="panel" CssClass="" HoverClass="" Text="Nuevo nodo" ToolTip=""></ignav:Item><ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""TargetFrame="panel" CssClass="" HoverClass="" Text="Modificar nodo" ToolTip=""></ignav:Item><ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""TargetFrame="panel" CssClass="" HoverClass="" Text="Borrar nodo" ToolTip=""></ignav:Item><ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""TargetFrame="" CssClass="" HoverClass="" Text="Expandir" ToolTip=""></ignav:Item><ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""TargetFrame="" CssClass="" HoverClass="" Text="Contraer" ToolTip=""></ignav:Item></Items></ignav:Item><ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""TargetFrame="" CssClass="" HoverClass="" Text="Nodos" ToolTip=""><Items><ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""TargetFrame="" CssClass="" HoverClass="" Text="Ocultar nodo" ToolTip=""></ignav:Item><ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""TargetFrame="" CssClass="" HoverClass="" Text="Mostrar nodo" ToolTip=""></ignav:Item><ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""TargetFrame="" CssClass="" HoverClass="" Text="Ver todos" ToolTip=""></ignav:Item><ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""TargetFrame="" CssClass="" HoverClass="" Text="Ver visibles" ToolTip=""></ignav:Item></Items></ignav:Item><ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""TargetFrame="" CssClass="" HoverClass="" Text="Procesos" ToolTip=""><Items><ignav:Item TargetUrl="pedirArchivo2.aspx" IslandClass="" HoverImageUrl="" ImageUrl="" TagString=""Title="" HiliteClass="" TargetFrame="panel" CssClass="" HoverClass="" Text="Importar" ToolTip=""></ignav:Item><ignav:Item TargetUrl="Exportar_ds2.aspx?Contrato=0" IslandClass="" HoverImageUrl="" Enabled="False"ImageUrl="" TagString="" Title="" HiliteClass="" TargetFrame="panel" CssClass="" HoverClass=""Text="Exportar " ToolTip=""></ignav:Item><ignav:Item TargetUrl="ActualizarObligatorio.aspx" IslandClass="" HoverImageUrl="" ImageUrl=""TagString="" Title="" HiliteClass="" TargetFrame="panel" CssClass="" HoverClass="" Text="Actualizar campos obligatorios"ToolTip=""></ignav:Item></Items></ignav:Item>Obrigado. Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 Guest Visitante Postado Janeiro 23, 2007 Denunciar Share Postado Janeiro 23, 2007 Botando um onload="position()" bla bla bla. Da errorCreio que este JS não é o ideal para que eu quero fazer.alguém tem alguma sugestao?Obrigado. Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 Maricomvm Postado Janeiro 24, 2007 Denunciar Share Postado Janeiro 24, 2007 ninguém?¿ ? :( Citar Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
Guest Marcio Vidal
Ola!
Me deram a missão de por o menu acompanhando quando baixamos o scroll. Estou um pouco confuso porque o menu esta feito em asp usando infragistic.
Segue o codigo a ver se me ajudam
See....
I have this code and i need put something to do menu follow scroll.
I think in this javascript ...
var Hoffset=200 // largura
var Voffset=160 //altura
var ieHoffset_extra=15
var cross_obj= document.all.staticbuttons
function positionit(){
var dsocleft=document.body.scrollLeft
var dsoctop=document.body.scrollTop
var window_width=document.body.clientWidth+ieHoffset_extra
var window_height=document.body.clientHeight
cross_obj.style.left=parseInt(dsocleft)+parseInt(window_width)-Hoffset - 5
cross_obj.style.top=dsoctop //+parseInt(window_height)-Voffset
}
But where i put this in this webmenu?
<ignav:ultrawebmenu id="Menu" runat="server" Font-Size="9pt" Font-Names="Microsoft Sans Serif" BackColor="#F0F0F0"
BorderColor="#F0F0F0" BorderWidth="0px" WebMenuStyle="XPClient" SubMenuImage="ig_menuTri.gif" ScrollImageTop="ig_menu_scrollup.gif"
ScrollImageBottomDisabled="ig_menu_scrolldown_disabled.gif" ScrollImageTopDisabled="ig_menu_scrollup_disabled.gif"
ScrollImageBottom="ig_menu_scrolldown.gif" Cursor="Default">
<HoverItemStyle BorderWidth="1px" BorderColor="Gray" BorderStyle="Solid" ForeColor="White" BackColor="DarkBlue"></HoverItemStyle>
<SeparatorStyle BackgroundImage="ig_menuSep.gif" CustomRules="background-repeat:repeat-x; "></SeparatorStyle>
<Items>
<ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""
TargetFrame="panel" CssClass="" HoverClass="" Text="Arbol" ToolTip="">
<Items>
<ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""
TargetFrame="panel" CssClass="" HoverClass="" Text="Nuevo nodo" ToolTip=""></ignav:Item>
<ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""
TargetFrame="panel" CssClass="" HoverClass="" Text="Modificar nodo" ToolTip=""></ignav:Item>
<ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""
TargetFrame="panel" CssClass="" HoverClass="" Text="Borrar nodo" ToolTip=""></ignav:Item>
<ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""
TargetFrame="" CssClass="" HoverClass="" Text="Expandir" ToolTip=""></ignav:Item>
<ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""
TargetFrame="" CssClass="" HoverClass="" Text="Contraer" ToolTip=""></ignav:Item>
</Items>
</ignav:Item>
<ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""
TargetFrame="" CssClass="" HoverClass="" Text="Nodos" ToolTip="">
<Items><ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""
TargetFrame="" CssClass="" HoverClass="" Text="Ocultar nodo" ToolTip=""></ignav:Item>
<ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""
TargetFrame="" CssClass="" HoverClass="" Text="Mostrar nodo" ToolTip=""></ignav:Item>
<ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""
TargetFrame="" CssClass="" HoverClass="" Text="Ver todos" ToolTip=""></ignav:Item>
<ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""
TargetFrame="" CssClass="" HoverClass="" Text="Ver visibles" ToolTip=""></ignav:Item>
</Items>
</ignav:Item>
<ignav:Item TargetUrl="" IslandClass="" HoverImageUrl="" ImageUrl="" TagString="" Title="" HiliteClass=""
TargetFrame="" CssClass="" HoverClass="" Text="Procesos" ToolTip="">
<Items>
<ignav:Item TargetUrl="pedirArchivo2.aspx" IslandClass="" HoverImageUrl="" ImageUrl="" TagString=""
Title="" HiliteClass="" TargetFrame="panel" CssClass="" HoverClass="" Text="Importar" ToolTip=""></ignav:Item>
<ignav:Item TargetUrl="Exportar_ds2.aspx?Contrato=0" IslandClass="" HoverImageUrl="" Enabled="False"
ImageUrl="" TagString="" Title="" HiliteClass="" TargetFrame="panel" CssClass="" HoverClass=""
Text="Exportar " ToolTip=""></ignav:Item>
<ignav:Item TargetUrl="ActualizarObligatorio.aspx" IslandClass="" HoverImageUrl="" ImageUrl=""
TagString="" Title="" HiliteClass="" TargetFrame="panel" CssClass="" HoverClass="" Text="Actualizar campos obligatorios"
ToolTip=""></ignav:Item>
</Items>
</ignav:Item>
Obrigado.
Link para o comentário
Compartilhar em outros sites
2 respostass a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.