View Full Version : help
thickandthin
09-09-2002, 08:51 PM
Hello everyone I have flash buttons on my web site, and when you click on the popup I have it doesnt work, does this mean that flash doesnt work with pop ups?
As far as I am aware they do....
I don't use flash, however it is a feature of this thread
...is this realy bad (http://www.codingforums.com/showthread.php?s=&threadid=5812)
The site mentioned uses pop ups from a drop down menu. all of which could be easily done in dhtml.
I found the pop ups only worked with IE but not with Mozilla or NS.
Hopefully some one with more Flash experience will reply
Good luck with the site.
Tonz
:cool:
webmarkart
09-10-2002, 04:40 AM
flash has the same linking capacities as regular html (as well as server side capabilities). Flash shouldnt have anything to do with a popup not working. Posting the link would help figure your the cause of the problem.
thickandthin
09-10-2002, 07:32 PM
OK HERE IT IS
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=650,height=500,left = 262,top = -66');");
}
// End -->
</script>
</head>
<body bgcolor="red" link="#ffffFF" vlink="#ffffFF" text="#FFFFFF">
<CENTER>
<a href="right.html" target="right"><img src="88.gif" border=0 width=148 alt="Thick & Thin Pizzeria™"></a>
<font size=2><br>
"It's the Best!"
<br>
<br>
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=120 HEIGHT=190>
<PARAM NAME=movie VALUE="flat.swf?tarframe=right&exbackground=FF0000&makenavfield0=Home&makenavurl0=right.html&makenavfield1=Menu&makenavurl1=menu.html&makenavfield2=Contact Us&makenavurl2=contact.html&makenavfield3=Store Hours&makenavurl3=storehours.html&makenavfield4=Application&makenavurl4=jobapplication.html&makenavfield5=Directions&makenavurl5=directions.html&makenavfield6=User Reviews&makenavurl6=review.html&makenavfield7=Coupons&makenavurl7=javascript:popUp('co.html')">
<PARAM NAME=loop VALUE=false>
<PARAM NAME=menu VALUE=false>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=scale VALUE=noborder>
<PARAM NAME=salign VALUE=LT>
<PARAM NAME=wmode VALUE=transparent>
<PARAM NAME=bgcolor VALUE=#FF0000>
<EMBED src="flat.swf?tarframe=right&exbackground=FF0000&makenavfield0=Home&makenavurl0=right.html&makenavfield1=Menu&makenavurl1=menu.html&makenavfield2=Contact Us&makenavurl2=contact.html&makenavfield3=Store Hours&makenavurl3=storehours.html&makenavfield4=Application&makenavurl4=jobapplication.html&makenavfield5=Directions&makenavurl5=directions.html&makenavfield6=User Reviews&makenavurl6=review.html&makenavfield7=Coupons&makenavurl7=javascript:popUp('co.html')" loop=false menu=false quality=high scale=noborder salign=LT wmode=transparent bgcolor=#FF0000 WIDTH=120 HEIGHT=190 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
<br>
<br>
<a href="http://member.bcentral.com/cgi-bin/fc/fastcounter-login?2953989" target="_top">
<img border="0" src="http://fastcounter.bcentral.com/fastcounter?2953989+5907985"></a>
</center>
</body>
</html>
webmarkart
09-10-2002, 08:39 PM
okay I've firgured out why your popup wasnt working... very simply all of the flash buttons are programmed to target the frame named "right" (including the popup for the coupons). You cannot target a popup thus your problem. I removed the "tarframe=right" and changed the javascript function and the popup works. So I know that is definitely what is causing your problem.
Obviously removing the target will mess up the other buttons so my sugestion would be to make the coupon button separate so you can separate the targets... I attached the left.html file that I worked on and modified. Let me know if this solves your problem...
thickandthin
09-10-2002, 08:54 PM
thank you everything works fine exept that there is a space between the coupons
like it says:
home
bla
bla
coupons
webmarkart
09-10-2002, 09:10 PM
The spacing is due to the object tags. Unfortunately there is no quick or easy way of fixing it. The problem with using button generators (such as the ones on guistuff.com) is that you lose some control of functionality unless you really know the coding involved but if you did chances are you wouldn't have used a generator in the first place...
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.