Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Float Over menus

  Asked By: Landon    Date: Sep 12    Category: Sharepoint    Views: 1594

I am interested in a web part or a modification to the Dashboard
that would allow for float over menus. If anybody has seen or
developed something like this.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Benito Carey     Answered On: Sep 12

I'm not sure if this is an option for you...

I spent a lot of time trying to tweak the css and xml involved in
generating the headers... I didn't care much for changing things
that had the potential to harm other areas.
So, I chose a sort of work around to the problem.

Instead of dealing with the header, I created a floating webpart
that sits on top of the header. In this way, I'm able to put any
content I WANT into the "header", including some flash animation.
I'll attach the code I used for the header; it should give you some
idea of what can be done with taking this route.

One problem with your situation and this method, is that you have to
explicitly build the menu items (or put them into the webpart
storage area) to reflect the menu choices you want available. You
lose the security of non-admin dashboards unless you program it in
yourself.

The example I'm sending also uses a sql server connection to trigger
the header version, and in doing so, should give you some idea of
how to dynamically pull the data you desire from a database.

hm... still, as involved as all THIS seems, it's still much easier
than trying to push sharepoint into submission, for ME anyhow.

I'm going to toss a copy of the dwp into the files area of this
group, in case you'd rather pull the code that way.
and, now for the code:


<?xml version="1.0"?>
<WebPart xmlns="urn:schemas-microsoft-com:webpart:">
<Title>Header</Title>
<Description></Description>
<Content>Function GetContent(node)
GetContent = ""
Dim rsPersonnel, strSQL, strTemp, remoteip, strUser
strUser = GetServerVariable("LOGON_USER")
strUser = Mid(strUser, Instr(strUser, "\") + 1)
remoteip = request.servervariables("REMOTE_ADDR")
if right(remoteip,6) <> ".1.130" then
Set rsPersonnel = Server.CreateObject("ADODB.Recordset")
rsPersonnel.ActiveConnection = "dsn=foo;uid=foo;pwd=foo;"
rsPersonnel.Source = "SELECT Initials, Fishies FROM dbo.foo WHERE
Initials = '" & strUser & "'"
rsPersonnel.CursorType = 0
rsPersonnel.CursorLocation = 2
rsPersonnel.LockType = 1
rsPersonnel.Open()
if rsPersonnel.eof and rsPersonnel.bof then
strTemp = ""
else
strTemp = rsPersonnel("Fishies")
end if

getcontent = "<div id='Layer1' style='position:absolute;
width:75%; height:100px; z-index:0; left: 0; top: 0; overflow:
hidden;'>"
getcontent = getcontent & "<object classid='clsid:D27CDB6E-
AE6D-11cf-96B8-444553540000'
codebase='download.macromedia.com/.../swf" target="_blank" rel="nofollow">download.macromedia.com/.../swf
lash.cab#version=5,0,0,0' width=1280 height=100>"
getcontent = getcontent & "<param name=movie
value='custom/fishies" & strTemp & ".swf'><param
name=quality value=high>"
getcontent = getcontent & "<param name=bgcolor
value=#009999><embed src='custom/fishies" & strTemp
& ".swf' quality=high bgcolor=#009999 width=1280 height=100
type='application/x-shockwave-flash'
pluginspage='www.macromedia.com/shockwave/download/index.cgi?" target="_blank" rel="nofollow">www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash'>"
getcontent = getcontent
& "</embed></object></div><SCRIPT
LANGUAGE='JavaScript1.1'>function Open1() {window.open
('http://intranet.fr.com/fishies.asp?" target="_blank" rel="nofollow">http://intranet.fr.com/fishies.asp?
fishies=1','Fishies','width=100,height=100,left=3000,top=3000')}
</SCRIPT><SCRIPT LANGUAGE='JavaScript1.1'>function Open2
() {window.open('http://intranet.fr.com/fishies.asp?" target="_blank" rel="nofollow">http://intranet.fr.com/fishies.asp?
fishies=2','Fishies','width=100,height=100,left=3000,top=30000')}
</SCRIPT>"

rsPersonnel.Close
rsPersonnel.Source = ""

Else

getcontent = "<div id='Layer1' style='position:absolute;
width:75%; height:100px; z-index:0; left: 0; top: 0; overflow:
hidden;'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-
444553540000'
codebase='download.macromedia.com/.../swf" target="_blank" rel="nofollow">download.macromedia.com/.../swf
lash.cab#version=5,0,0,0' width=1280 height=100><param
name=movie value='custom/fishcitrix.swf'><param name=quality
value=high><param name=bgcolor value=#009999><embed
src='custom/fishcitrix.swf' quality=high bgcolor=#009999 width=1280
height=100 type='application/x-shockwave-flash'
pluginspage='www.macromedia.com/shockwave/download/index.cgi?" target="_blank" rel="nofollow">www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash'></embed></object></
div>"

End If

End Function</Content>
<ContentLink></ContentLink>
<XSL></XSL>
<XSLLink></XSLLink>
<MasterPartLink>WebPartID=http://intranet.fr.com/myportal/Das
hboards/Gallery/FishHeader.VBS</MasterPartLink>
<RequiresIsolation>0</RequiresIsolation>
<ContentType>1</ContentType>
<IsIncluded>1</IsIncluded>
<AllowRemove>0</AllowRemove>
<IsVisible>1</IsVisible>
<FrameState>0</FrameState>
<AllowMinimize>0</AllowMinimize>
<HasFrame>0</HasFrame>
<Zone>4</Zone>
<PartOrder>1</PartOrder>
<PartImageSmall></PartImageSmall>
<PartImageLarge></PartImageLarge>
<CustomizationLink></CustomizationLink>
<CacheBehavior>0</CacheBehavior>
<CacheTimeout>0</CacheTimeout>
<PartStorage></PartStorage>
<Namespace></Namespace>
<Height></Height>
<Width></Width>
<DetailLink></DetailLink>
<HelpLink></HelpLink>
</WebPart>

 
Didn't find what you were looking for? Find more on Float Over menus Or get search suggestion and latest updates.




Tagged: