Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
RocmanUSA webforumsuser@macromedia.com #1
Dynamic variable assignments
Here is a code segment for a frames page. I want to be able to change a frame source page depending on the browser. This is what I tried but it doesnt work. Been years since I coded so a little help would be great.
Here's the code:
//trying to change the value of var slidefile to be something
<html>
<head>
<title>
[url]WWW.RockVideos.US[/url]
</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
var browser_type=navigator.appName
var slidefile="slidedummy.htm"
var browser_version=parseInt(navigator.appVersion)
//if NS 6
if (browser_type=="Netscape"&&browser_version>=5)
slidefile="Copy of slide.htm"
//if IE 4+
else if (browser_type=="Microsoft Internet Explorer"&&browser_version>=4)
slidefile="Copy of slide.htm"
//if NS4+
else if (browser_type=="Netscape"&&browser_version>=4)
slidefile="slide.htm"
//Default goto page (NOT NS 4+ and NOT IE 4+)
else
slidefile="slide.htm"
</script>
</head>
<frameset rows="88,*" frameborder="NO" border="0" framespacing="0">
<frame name="top" scrolling="NO" noresize src="TOPframe.htm">
<frameset cols="137,*" frameborder="NO" border="0" framespacing="0">
<frame name="left" scrolling="NO" noresize src="NAVframe.htm" >
<frameset rows="110,*">
<frame name="slide" scrolling="NO" noresize src=slidefile>
// here is where the value makes the difference
<frame name="middle" scrolling="auto" src="middle.htm">
</frameset>
</frameset>
</frameset>
<noframes>
</noframes>
</html>
RocmanUSA webforumsuser@macromedia.com Guest
-
Dynamic Where variable
I'm attempting to create a complete "Where" statement and save it to a variable. It works fine when comparing a numeric field against a number but... -
create a dynamic variable
Hi ! i would like to know how to create a dynamic variable with flash. I'm getting 2 strings from XML and would like to create a variable named... -
Dynamic Variable ... how can I ?
Hi ! I need to disabled some buttons. Here's some AWEFUL code I have : for (i=1996; i<=2004; i++) { if (_root.year_array == false) { if... -
#26307 [Opn->Bgs]: Variable reference assignments in functions
ID: 26307 Updated by: sniper@php.net Reported By: soywiz at hotmail dot com -Status: Open +Status: ... -
#26307 [NEW]: Variable reference assignments in functions
From: soywiz at hotmail dot com Operating system: Windows PHP version: 4.3.4 PHP Bug Type: Variables related Bug...



Reply With Quote

