Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EMBEDDED FLASH

Status
Not open for further replies.

msstrang

Programmer
Sep 19, 2005
62
US
Hey, I usually use Tek-Tips for VB, C++, etc.

However, I'm trying to add a flash object to a webpage for my companies website. I have no problem embedding the .swf.

My problem is that although my side bar has no issues with the page header, my flash object does not "go under" the header like it is supposed to when I scroll. It "goes over" the header.

My code is as follows:

Code:
<% 
Response.Expires = -1000 'Make sure the browser doesn't cache this page
Response.Buffer = True 'enables our response.redirect to work
%>



<!-- #include file="displayHeader.asp" -->
	<div class="contentWrap" id="contentStart">
		<div class="bodyWrap">
			<div class="contentSection welcomeSection">

			


<%
If Request.Form("submit") ="Login" Then 
CheckLoginForm
Else
ShowLoginForm 
End If 
%> 

<%
Sub CheckLoginForm
'check if the value of the text field 'username' and 'password' are correct
If Request.Form("username") = "username" AND Request.Form("password") = "password" Then
Session("BlnLoggedIn") = True

Response.Write	"<div class=""contentSection welcomeSection""> "
Response.Write	"<object width=""700"" height=""600""classid=""clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"" codebase=""[URL unfurl="true"]http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"">"[/URL]
Response.Write  "<param name=""movie"" value=""Presentation/index.swf"" />"
Response.Write  "<embed src=""Presentation/index.swf"" width=""700"" height=""600"" type=""application/x-shockwave-flash"" pluginspage=""[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer""[/URL] />"
Response.Write	"</object>"
Response.Write	"</div>"

Else
'if the values entered are incorrect then display the message below
Response.Write "<div align='center'>You are not logged in.</div><br>"
ShowLoginForm 
End If
End Sub
%> 

<% Sub ShowLoginForm %>
<div align='center'>
<!-- start the HTML login form -->
<form name="form" action="presentation.asp" method="post">
<table>
<tr><td>User Name :</td><td><input type="text" name="username"></td></tr>
<tr><td>Password : </td><td><input type="password" name="password"></td></tr>
<tr><td colspan="2"><input type="submit" name="submit" value="Login"></td></tr>
</table> 
</form>
<!-- end the HTML login form -->
</div> 
<% End Sub %>






			</div>
			
			
		</div>
		<!-- #include file="sidebar.asp" -->
	</div>
<!-- #include file="displayFooter.asp" -->


Can someone please point me in the right direction.
Thanks.
 
Flash objects appear in their own special 'layer' above other content so they will always appear 'above' any HTML or images.

I think there may be a way to hack this, but I would imagine it is unreliable at best.

Is it possible to rethink how the page is structured to avoild the problem?

Can you also show Client side code or ideally a link to the page in question?

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top