Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Keep A Flash Navigate In The Center Of The Page


i want that a flash navigate stays in the middle of the screen when scrolling down and up.




View Complete Forum Thread with Replies

Related Forum Messages:
How To Position The Page To The Center?
I'm trying to wrap a certain website and then make it load to the center position automatically when the page is loaded. I tried anchor but it doesn't seem to work. And the main menu of that website seems to align itself according to the width specified - but I need to the iframe to be 300 pixels.

<div align="center"><iframe src="www.phpfreaks.com#Summary" width="300"></iframe></div>

Or how to make them position to where their last scroll position is the next time when they click the links inside the iframe?

View Replies !
Iframe To Appear In The Center Of The Page
I want the iframe to appear in the center of the page, with some linked images to the left of it. However, despite my endeavors, iframe continues to appear below the images instead of beside them.

View Replies !
Navigate Between Pages Like, PREV 1 2 3 4 5 NEXT Etc.
I would like my customers to be able to navigate between pages like, PREV 1 2 3 4 5 NEXT etc. I have managed to get this working using a combination of code created with dreamweavermx and by following the tutorial at php freaks. However i need the first page that loads to be page 1, so that the first link to be displayed will be for page 2. I'm nearly there but need a bit of help to overcome this. I have enclosed the code below as im not sure where to go from here.
Any help would be much appreciated.
Many thanks.
A working link
http://www.textual-intercourse.co.uk/pagination3.php


<?php require_once(); ?>
<?php
$currentPage = $HTTP_SERVER_VARS["PHP_SELF"];

$maxRows_Recordset1 = 15;
$pageNum_Recordset1 = 0;
if (isset($HTTP_GET_VARS['pageNum_Recordset1'])) {
$pageNum_Recordset1 = $HTTP_GET_VARS['pageNum_Recordset1'];
}
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;

mysql_select_db();
$query_Recordset1 = "SELECT polyphonictones.Id,Artist,TrackName,name FROM polyphonictones, ringtonegenre WHERE ringtonegenre.id = polyphonictones.Genre ORDER BY polyphonictones.Artist";
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1,) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);

if (isset($HTTP_GET_VARS['totalRows_Recordset1'])) {
$totalRows_Recordset1 = $HTTP_GET_VARS['totalRows_Recordset1'];
} else {
$all_Recordset1 = mysql_query($query_Recordset1);
$totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
}
$totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;

$queryString_Recordset1 = "";
if (!empty($HTTP_SERVER_VARS['QUERY_STRING'])) {
$params = explode("&", $HTTP_SERVER_VARS['QUERY_STRING']);
$newParams = array();
foreach ($params as $param) {
if (stristr($param, "pageNum_Recordset1") == false &&
stristr($param, "totalRows_Recordset1") == false) {
array_push($newParams, $param);
}
}
if (count($newParams) != 0) {
$queryString_Recordset1 = "&" . implode("&", $newParams);
}
}
$queryString_Recordset1 = sprintf("&totalRows_Recordset1=%d%s", $totalRows_Recordset1, $queryString_Recordset1);
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?php do { ?>
<?php echo $row_Recordset1['Id']; ?> <?php echo $row_Recordset1['Artist']; ?> <?php echo $row_Recordset1['TrackName']; ?> <br>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?><br>
<table width="493" height="130" border="1" align="left" cellpadding="1" cellspacing="1" bordercolor="#000000">
<tr>
<td width="485">
<?php if ($pageNum_Recordset1 > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, max(0, $pageNum_Recordset1 - 1), $queryString_Recordset1); ?>">Previous</a>
<?php } // Show if not first page ?>
<?php $totalPages_Recordset1 = $totalRows_Recordset1 / $maxRows_Recordset1;
for($i = 1; $i <= $totalPages_Recordset1; $i++){
if($i == $pageNum_Recordset1){
echo($i."&nbsp;");
}else{
echo("<a href="$PHP_SELF?pageNum_Recordset1=$i">$i</a>&nbsp;");
}
}


if(($totalRows_Recordset1 % $limit_Recordset1) != 0){
if($i == $pageNum_Recordset1){
echo($i."&nbsp;");
}else{
echo("<a href="$PHP_SELF?pageNum_Recordset1=$i">$i</a>&nbsp;");
}
} ?>
<?php if ($pageNum_Recordset1 < $totalPages_Recordset1) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, min($totalPages_Recordset1, $pageNum_Recordset1 + 1), $queryString_Recordset1); ?>">Next</a>
<br>
<?php } // Show if not last page ?></td>
</tr>
</table>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>

View Replies !
Pagination Unable To Navigate
i am trying to use a pagination script that is from a tutorial on here i was given a link to and basically i can get information to display on first page and it brings up standard text saying under PREV5 1 NEXT 5 but it isnt a link or interactive so i cant get next 5 records or last so i have 5 records on screen but cant navigate between them.

But i cant see why the screen shows only 5 records there are no error codes can anyone see what i have done wrong please as i feel like im going round in a circle. Code:

View Replies !
Navigate Pages Generated
Mentioned below is a PHP function , which can be used to navigate pages generated from the select query . ie. in the form of << Previous || Next >>

<?


function PagerNextPrevious(&$sql,$pagesize,$class='txt'){

// Set Default Page Size to 20
if($pagesize=="")
$pagesize=20;
$page=get_post('page');
if($page!='NA'){
$beg=($page-1)*$pagesize;
$end=$pagesize;
}else{
$beg=0;
...................

View Replies !
Flash Not Working On Page
I have inserted Flash animation on my page as normal (using Dreamweaver)- only it won't display in the browser for this site - which has various php/mysql pages on it - but this one is a simple html page - which displays the html - but not the Flash ?

The flash displays in the browser if I insert it into a page on another site - which does not use php/mysql.

Is it to do with the set up of the site which uses php/mysql ? - e.g. the fact there's testing server settings. My sites/servers are hosted remotely - and not on my own machines.

View Replies !
Flash .swf Doesn't Show In PHP Page
I've recently put together a flash navigation for a 4 page site... three pages are HTML, the index page is PHP with a weblog. In all current Mac browsers, all four pages load fine. In Win IE 6 only the .shtml pages will load the flash--the .php page shows a big white box instead.

If I include the index.php in the index.shtml file, the flash loads fine, but I'd like to know if there is some issue with PHP & flash that I should look out for... or is the issue with IE 6.

View Replies !
Compose MP3 From A Php Enabled Flash Page.
I have an educational web site. I want to create an interface where my students can record their voices client side and then save messages server side. I thought Odeo would solve my problems. (The have their own problems
now.) Then I tried: MyChingo and Mobasoft. Come on $6,000 for a site
licence....

View Replies !
How To Open Random Flash Page Using Hyperlink?
I'm new to using PHP so please bear with me.

I'm trying to create a hyperlink that will open a random Flash page so that users will see a different flash module each time. Here is some of the code that I wrote but I'm not sure if it'll work since I'm not very good at coding. Oh yeah, I'm not using a database either.

// random_menu.html
<head>
<?php
$i = rand(0,3);
?>
</head>
<body>
<a href = "www.x.com/random.php?i=$i">x</a>
</body>
---------------------------
// random.php
<head>
<?php
$i = $_post["i"];
if ($i = = 0){
$value = "a";
}
else if ($i = = 1){
$value = "b";
}
...etc.
</head>
<body>
<object>
<param name="movie" value="$value">
<embed src="$value"></embed>
</object>
</body>

Please help if you know how to do this.

View Replies !
How Would I Create A Login System With Flash Then Load A Page?
I'm creating a login in system using flash mx, php and mysql. flash is being used to create the fields...i know (i think) how to get the login in working but what i'd like to know is how would i get (once the user has logged in) a page to load in a frame?

any help would be greatly appreciated.

View Replies !
Image Upload - Using A Variable Passed From A Flash Page
i'd like to pass a variable using post into the following form (that is from php.net)
using a variable passed from a flash page (i'm competent in flash but a novice in php)how do integrate:

$folder = $_POST['folder']."/";

into the form so that when submit occurs the folder path is passed to upload.php :

<!-- The data encoding type, enctype, MUST be specified as below -->
<form enctype="multipart/form-data" action="upload.php" method="POST">
<!-- MAX_FILE_SIZE must precede the file input field -->
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<!-- Name of input element determines name in $_FILES array -->
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />
</form>

View Replies !
Set The HTTPS Username And Password Using Php/flash And Then Open The Secure Page.
My hosts allow secure https logins on specific directories. What I want to do is have a login screen in flash, if the user enters the correct username and password I would like to set the HTTPS username and password using php/flash and then open the secure page.

In my mind at this point they'll be logged in and then can navigate the secure page without seeing the browsers https login dialog. Am I kidding myself, or is this possible?

They're config is the following:
PHP Version 4.3.11
4.9-STABLE FreeBSD
Zend Engine v1.3.0

Apache/1.3.33 (Unix) PHP/4.3.11 mod_ssl/2.8.22 OpenSSL/0.9.7c
FrontPage/5.0.2.2635 mod_throttle/3.1.2

View Replies !
Message Center
I am trying to create a message center for my website, which will act as a news section. So basically, admins will be able to post news and normal users view it.

I have tried looking a code for free open-source forums as it is the same kind of thing, but I find that code too complicated to look at.

View Replies !
Micro OLAP Dba Center
This time I've really met the ultimate experience in my computing life.

I've downloaded and installed Micro Olap dba center.

It has actually wiped out all my MySQL databases in Wamp 5

Just after I've done a complete backup (wooshshsh...)

It's not the first time I test wacko software (previous was Zend
Studio), but few that was close.

Well, to keep me cool I'm gonna bring out The Gimp ;-)

View Replies !
Center Text In Images
The math on this checks out exactly the way it should, went through each step substituting in hard numbers and it still doesn't center the text. PHP Code:

<?php
header("Content-type: image/png");

    $string     = $_REQUEST['n'];
    $image      = imagecreatefrompng("images/lovesjuice.png");
    $color      = imagecolorallocate($image, 195, 31, 31);
    $font       = 'Tahoma.ttf'
    $font_size  = 50;
    $font_width = imagefontwidth($font);
    $half_width = imagesx($image)/2;
    $x          = round(($half_width-(strlen($string)*$font_width)), 1);
    $y             = 130;
    
    imagettftext($image, $font_size, 0, $x, $y, $color, $font, $string);
    imagepng($image);
...............

View Replies !
Center A Group Of DIV Tags
I am looking for a piece of code (PHP/HTML) to center a group of div tags, particualarly the ones used HERE.

View Replies !
GD Center Text On A Image
The following works fine - but would like to center the text. Whats the best way to do it ? .

<?php

$text=$kk[4];

if ($kk[4]=="") {$text="MAIN MENU"; $kk[1]="mainmenu";}

$img_name="images/zdefault.jpg"; $source=ImageCreateFromJPEG($img_name);

$white=imagecolorallocate($source,255,255,255);
$grey=imagecolorallocate($source,213,224,225);
$black=imagecolorallocate($source,0,0,0);

$font='arial.ttf'

imagettftext($source,28,0,12,39,$grey, $font, $text);
...................

View Replies !
Pagination Center Problem
I have a pagiantion problem and it is throwing my pages off the center of the page i dont understand that. Does any body have a link to a good online tutorial that actually works. Most that i have come accross are full of errors.

View Replies !
PHP, DCOM, IIS 6, Application Center Installation
We're trying to migrate to Windows 2003 Server from Windows 2000 and
have run into problems with our DCOM permissions not being properly
authenticated against our application server. Instead of using the
user account specified in IIS, the web server is sending the machine
name followed by a dollar sign as its login credentials.

Just wondering if anyone else has run into this before and if anyone
has any insight.

View Replies !
Best Way To Center One, Or More DIVs In The Browser Window?
What is the best way to center one, or more DIVs in the browser window?
Can someone give me a quick code snipplette. I need something that will
center the DIV, for all sorts of awkward screen resolutions. Remeber, with
that said, I need it to be centered in the BROWSER window, not the screen.
User must be able to resize his browser window to anything though...

View Replies !
Image Resize - Center A 100 By 100 Pixel Box
I wrote and image resize script that keeps the same width height ratio as the orignal what I want to do is take the resized thumbnail and center a 100 by 100 pixel box on it so that my thumbnails are now 100 X 100. It would make my gallery look proportional and neatly in order. Code:

View Replies !
Embark On A Resource Center For A Website
I am about to embark on a Resource Center for a website, so they can easily manage assets in their company internally, and things that their customers may need. Code:

View Replies !
Passing Variable From Flash To Php & Back From Php To Flash
I am looking for some help in passing variable from flash to php & back from php to flash.

View Replies !
Administration Center/Admin Panel Missing In Joomla-SMF
Looking forward to help regarding a Joomla-SMF Bridge issue. Anyone
experienced the following scenario stated below?

I purchased a domain in Hostmonster and installed Joomla 1.0.12 and
SMF 1.1.1 there. I downloaded and installed Joomla-SMF bridge 2.0.2
successfully to use a single database for shared
authentication/sign-on. Now when I login to the forum as admin, I dont
see Admin (Administration Center) in the forum navigation menu. All I
see are - Home, Help, Search, Profile, My Messages, Members, Logout. I
created the admin user from Joomla User Manager who can administer
both Joomla and SMF (as its now integrated) because thats the only
place I found to create.

Where am I going wrong? Is there any way create a new admin from
forum? I dont see any link for 'Administration Center' in the forum
home page as well from where actually I should be able to create new
forums. I believe its an authorization issue and if I clean up the
installations of SMF and Joomla-SMF bridge, I might be able to get
hold of it when I create a new admin. But that will be working around
the problem without knowing how the problem arose. Hence, hoping for
someone already went through the experience here.

View Replies !
Flash, PHP & XML
Is anyone out there doing anything in terms of parsing in XML into Flash using PHP as a go between so to speak? I have done some stuff parsing XML directly into Flash but I ntoiced a huge speed hit.

Anyways, I was wondering if anyone has done anything or has seen a way to parse XML into Flash via PHP.

View Replies !
Php/flash
I have a text field (multiline) in Flash. When I click "submit" it hits a PHP script. The PHP file sends the message in the text field to an email address. My problem is that when i receive the email, the message is joined together, not recognizing the line breaks that were made on the Flash end. Does the variable of the text field need to be manipulated before it gets posted to the php file?

View Replies !
Re:FLASH MX
I presume PHP sience you are in
the php forum?

View Replies !
PHP Flash
I am connecting PHP & Flash..

$var = $this->_nm->getVar(); <-- Get data from database
$var1 = gettype($var);
if (is_string($var1))
{
echo "s=".$var1;
}

If i print in the browser, it will return s=string, however if i
LoadVars in flash it will return s=NULL

View Replies !
Flash And PHP 4.3.1
I've been developing a project in Flash 5 that utilises both PHP and MySQL. The development and testing was done on a PHP server running version 4.1.2 (pretty old I know) and everything was working perfectly. However, upon upgrading to the latest version of PHP 4.3.1, it appears that my Flash application no longer communicates with the PHP files.

Is there some new security measures that were introduced in PHP 4.3.1 that could be clashing with how the Flash file operates? Has anyone else experienced similar problems?

View Replies !
FLASH MX
I NEED HELP WITH FLASH, THIS IS THE SITE THAT I AM WORKING ON

View Replies !
Php, Xml And Flash
i have a video with captioning. video is a flash file and captioning is in XML file
they are working really fine. now what the problem is:: I am getting the path of xml file through php as well as video(flv) file path through php.

the video works well but the xml file path which i got through php( from database) is not working. the captioning part (xml file) is not working now only the video is displayed... could anyone please help me to get out this situation..is the problem with php and xml or php,xml and flash.

View Replies !
PHP And Flash 8
This is a very weird problem having to do with security settings.

I'm trying to access a php file, stored on a server on my computer, from a .swf file embedded in a webpage, but when it only works when you open the .swf file with flash 8. When you use the .swf file in a browser it comes up with this security thing and it wants you to change the security settings here:
http://www.macromedia.com/support/d...manager04a.html

Then I change it to always allow then I add 'local' and 'localhost' but nothing happens This database accessing work 100% when using the program flash 8. Code:

View Replies !
PHP With Flash
I know this is not a flash forum, but I have tried about 3 flash forum and no one either seems to know the answer or they will not help me one; so I thought I would give my regular visited PHP forum a swing at this one.

I am trying to load images in Flash through PHP; but have no idea about action scripting. Has anyone every tried to do this; if so please advise me on how you accomplished this.

View Replies !
Flash
I dont really have a problem just enquiring, i have heard it is possible to do PHP in Macromedia Flash i was just wondering if anyone else knows about this because i have a college project and it needs to have PHP accessing databases, searching adding removing etc, and i really enjoy using Flash and i was wondering if it is possible

View Replies !
PHP & Flash
I am trying to send XML from flash to php so I can add it to the database. I am using the XMLconnector, from flash, and sending the results to a php file, however I have no idea how to call those parameters.

View Replies !
Php In Flash Mx
is it possible to use php in a website i am creating in flash mx?

View Replies !
Flash...
I have a directory for SWF files, and each swf filename is stored in my database.. I want to retrieve the sun_button2.swf" from my database, and show it by passing the id from the url... Now The Flash Script is supossed to show something, but it doesnt. Code:

View Replies !
Flash Still
I've gone through a couple of tutorials from online and books and seem to be stuck and think it might be my setup. No matter what I do with php and action scripts my flash display is empty. So I dont konw if it's excecuting the backend stuff. I want a simple test that I can do which if I know doesnt work then my setup is wrong. Code:

View Replies !
XML V/s PHP V/s Flash
Browsers have come along way since 2000 and XML has a great deal of potential. But how does XML (along with XSL, XSLT, XSL-FO, XPath, XML-DOM, XQuery, XPointer and XLink (AJAX: Asynchronous JavaScript and XML,)) stack up against the use of just PHP / Javascript or Flash?

View Replies !
Flash To PHP
I've got a flash to php form on my site that works 100% of the time... for me. Unfortunately, I keep receiving undefined emails through it. Since it works for me I don't know why it wouldn't work for someone else. Code:

View Replies !
PHP And Flash Together
if PHP can be combined with Flash to the effect that Flash manages all of the user interface, and PHP is allowed to handle any dynamic content referenced from a database?

View Replies !
With Flash
I need to draw a map for the customers to select the seats they preferred. Im thinking og using flash to draw the map and then post the data to php. Is this works?

View Replies !
Php For Flash
can i use php with flash in any way?

View Replies !
Flash SWF
I have a main flash movie that loads another swf on another level with in my main movie and within the loaded swf I have a button that I want to go to a scene in my main movie. How can a acomplish this?

Example: Main site loads up then on the time line and action calls for another swf to load on level 2 with in my main movie because of its size. With in my loaded swf I have a button that I want to go to my main movie and get another scene.

View Replies !
PHP And Flash
Is it possible to write a php script that will play the flash swf and then replace it with a jpg? That way if users don't have flash they will still see the graphic after the movie is done playing.

View Replies !
Flash?
I have a page written with php and a MySQL Database. Now, I want to redesign
the whole, but still with the Database and php. is it possible to design the
page with Flash and then to put all the php commands into the source code?
specially, I still need the extension *.php?

View Replies !
First PHP + Flash Project
Basically its going to be a chart of say 20 items that are ranked according to vote by registered users. So heres a few initial pointers i need help with to get the ball rolling:

1. The Flash page is loaded how do I initiate php script to search a mysql db to read a list of items containing the fields (id,name,votes,date_entered)

2. Would it be best to calculate ranking server side with script and then stream list to flash movie or calculate ranking via action-script.

3. When a user wishes to vote they enter their username and password in 2 text boxes (stored in another db) and then clicks on item to vote for..how would this data be sent to a script that would update the db accordingly.

4. After the database has been updated the flash movie needs to be then updated, am i better again doing this via another post to movie or with action-script?

These are initial thoughts and i'm sure there will be many more queries as I hopefully progress. I think alot of people will benefit from this project as there are not alot (or enough) tutorials on Flash interaction with db's via PHP.

View Replies !
Flash Sniffer
can anyone tell me how to sniff for a plug in, namely flash? i'd prefer a php3 solution.

View Replies !
How To Display Pdf Into Flash?
My colegue is trying to make a Multimedia presentation using flash.
But when anybody clicks on a pdf document, the acrobat reader
executable is executed from clients to open the pdf file.

What he wants is that rather than opening the document using
acroread.exe, the contents will be shown in a context area kept in the
navigator.

Can anybody suggest anything here. Is there any softsare to grab pdf
content and convert into flash?

View Replies !
Flash Detect
Can php load an image in place of a flash movie for users without the flash plugin?

View Replies !
PHP3 & Flash 4
Anyone know how to use PHP3 $variables in a flash4 movie?

View Replies !
Flash, PHP & LoadVariablesNum()
I am having problems getting variables/values INTO Flash from an
external source (PHP).
I'm NOT having problems getting loadVariablesNum() to _SEND_ variables
via POST, but I _AM_ having difficulty reading back into Flash local
variables.

Say, for instance, I have a Flash page that has a number of typein
fields. Each of the typeins has a variable associated with it.

In the action script section, I have something like this for a "Save"
button:

on(release) {
var result = "unset";
loadVariablesNum("foo.php", 0, "POST");

if (result == "ok")
{
getURL("bar.html");
}
}

Now, foo.php runs fine and is able to see all of the typein variables
in its HTTP_POST_VARS array and works properly and outputs:
result=ok

The locally scoped 'result' variable never gets changed.
If, however, I create a typein field and give it a variable called
'result' (and get rid of the local 'result' variable declaration in
the action section), the text typein field displays "ok" after
clicking on the "save" button.

What gives?
How does one declare/create variables in Flash that are locally (or
globally, I don't really care) scoped variables that are NOT UI
elements, but DO work for reading values back from an external source
(PHP, Python, txt file, ...)?

I've done some reading of the Flash documentation, and
loadVariablesNum() and loadVariables() sections are too terse and the
examples aren't very useful.

Furthermore, there seems to be an awful lot of WRONG information out
on the various websites and Q&A sites.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved