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.





Change Part Of A Web Page After X Seconds Delay?


I was asking about how to pass a new array number with a page refresh and someone responded: But what I don't understand is why you want to change images like that on page reload, I have never seen it before.

That raised the question to me - if I have written out a web page in PHP that has an image displayed on the page - is there a way to have it change the image every 10 seconds?

Could you do this with a For Each or While type loop? I thought once the script was parsed it then wrote the page source and it doesn't change on the screen.




View Complete Forum Thread with Replies

Related Forum Messages:
Making Seconds Change
ive added a time () function to my web site but the seconds dont seem to change, ive seen other site doin it. How do you make the seconds change without refreshing the page.

View Replies !
Delay Page - How?
When my users type in a search parameter on my website, I want the search to
execute. While it's executing, I want a temporary page to be loaded, with
perhaps an advert, and when the search actually completes, the search
results are displayed.

It's like on orbitz or hotwire, when you search and they show you some
messages while it's searching.

Any clues on how I'd do that?

View Replies !
Page Loaded In X.x_ Seconds
how can i make something saying: this page was loaded in x.xxxx seconds?

View Replies !
Page Generated In XXX Seconds
I was reading a post here and toplay referred someone to the http://theomega.org/ for captcha info. I went to checkit out and noticed that on the bottom of the page it said:

Page Generated In: 0.1911 seconds.

View Replies !
How Do I Redirect A User To A Page After Say 5 Seconds?
how do i redirect a user to a page after say 5 seconds?

View Replies !
Count Seconds Page Is Viewed
I would hold a variable of when it's opened, then in the script that runs when the page is offloaded, I coudl calcualte it.

How do you store a time variable? How do you calculate the amount of time (seconds) based on two timestamps?

View Replies !
Specifying A Time In Seconds To Redirect To The Referring Page.
I'm using this in for my login script to redirect user back to referring page:
header ("Location: $HTTP_REFERER");

I would like to display the page that my script produces, after submission so i was wondering if there's a way of specifying a time in seconds to redirect to the referring page.

View Replies !
Problem With Automatic Page Refresh Every 40 Seconds
I'm using a meta refresh tag to automatically refresh an iframe page (with weather data) every 40 seconds so that the data remains accurate if someone stays on the page.

Seems to work fine but if I leave the page overnight, for instance, and I arrive in the morning the iframe page with the weather has turned into this: Code:

View Replies !
Execute MySQL Command After Viewed The Page For 20 Seconds
Is it possible to somehow wait for a user to stay on the site for 20 seconds and after that issue a MySQL command? I'm creating a system that gives registered users points for viewing pages etc.

I thought it might be done with Javascript, but a quick glance to the Javascript DevTalk teached me that it is not possible, because Javascript works on the client.

View Replies !
Page Loades Part Of The Page
the below code is kinda working but its only loading part of the page, when I do a page refresh the rest of the page loads.  the part of the page that is not loading correctly is the bottom 1/2 which displays images. Code:

View Replies !
Caching A Part Of A Page?
I am working on a custom banner generator for some of our users.

Its basically a flash banner that can take vars for colors etc, so users can integrate with their sites colour scheme.

Its set up currently with the banner at the top as a preview, with e.g. .swf?color1=00000&color2=45efef in the object and embed tags.

Below this is a script that is 3 nested for loops, that increment a var each and convert that to hexidecimal. The three hex refs are then concat'd together, and set as a CSS background to a transparent gif with an href around that calls the same page with the new colors in the url, which get passed back to the flash movie. (hope im making sense here :))

So theres about 500 or so (im incrementing the vars by two,otherwise its way sloooow) <a><img></a> that have to be generated on each page load. Im wondering how and if i can speed this up?

View Replies !
Getting Part Of Another HTML Page
I'd like some help with writing a script that grabs part of another HTML page. For example : I want to grab the content of a HTML page that contains the following strings :

<!-- begin --> and <!-- end -->

Then I want to get all the content (including these two tags) that is in between the two tags.

View Replies !
Refreshing Part Of A Page
Can some one help me if it is possible to refresh a part of a page,
without reloading the whole page. Let's say, i want to add a small
message box to my webpage. After writing a message, the user presses
the send button and i want only this part of the page to refresh and
give him a status message saying his message was successfully received.

View Replies !
How To Let Php Reflesh Part Of Page
I want to write some code that when some variable condition is met, it will change a table cell value (only reflesh that value instead of the whole page),

I used to think it as calling JavaScript function first, which in turn change that table cell value in the page. But I don't know how to let php call JavaScript, or mimic click button action to call JavaScript.

View Replies !
Refreshing Certain Part Of Page
I need help with how to get my shoutbox I made to automatically refresh when someone posts a new shout.

View Replies !
Selective Rendering Of Part Of A Page
I want to skip the rendering of certain parts of a Web page if the
user doesn't have a certain permission (e.g. a cookie). I'd like to do
it along these lines:

<p>Anybody can see this paragraph.</p>
<? start_protected_section($got_permission); ?>
<p>Not everybody can see this paragraph.</p>
<? end_protected_section(); ?>

Is it possible to disable the rendering of a section outside the code
like this (perhaps by setting a PHP flag to redirect subsequent
output)? I don't really want to complicate things by moving part of
the page into a separate "include file" or mixing the HTML and PHP by
using a here-document (the <<<END syntax).

View Replies !
Include Specific Part Of Page
i know that the include() function allows you to include a page with php but how do i only include PART of a page like specific tables? what im trying to do is get the certain parts of this page: ...

View Replies !
Need To Copy Text From One Part Of Page To Another
It has been great so far but I hit a road block on one thing and I figured the brilliant minds here could help. This site isn't in a database because its 3000 pages of HTML now and we figured we can do work arounds to make it look right. We are starting a database for future data though Code:

View Replies !
Extract Each Part Of A Page That Are Enclosed In A <b>-tag
I would like to extract each part of a page that are enclosed in a <b>-tag, but ONLY if there are no other tags enclosed.

<b>some text</b> <-- a match
<b>some text <i>in italic </i></b> <-- should NOT match

This is what I have so far:

$pattern = "/<b>(.*?)</b>/si";

preg_match_all($pattern, "<b>some text <i>in italic </i></b>", $out);

Any thoughts?

View Replies !
Loading Part Of Page Using Includes
If I use includes to create a website pages, how can I make sure that the header part I where i have a flash movie, will load only once?

View Replies !
Get The Value You Pass From One Page As Part Of The Query String?
How do you get the value you pass from one page as part of the query string i.e

htttp://www.somesite.com/postage.pgp?newsid=2

How you you get the value of the variable in the next page, stumped.

View Replies !
How Do U Code A Printable Output Of A Part Of Your Page?
im trying to develop a website and im wondring how to make a connection with a printer and make a printable version of the page

View Replies !
Setup A Link In My Page That Will Change My Page
I am working on a page with a right column that I want to use for
navigation. In this right column I am using the below code to set a
value for the link. I am using the variable $test right now.

I want to click on the link and when the value is set to a certain
value, say 1, I want the script to run and load a page based on a
switch case. This way I can use different links for navigation that
will load different forms and areas of my application. So here is the
code for the link line. Code:

View Replies !
Php Form To Allow The User To Enter Part Of A Last Name And/or Part Of A First Name To Display The Data
I'm sure this is not a hard thing to do, but for some reason I can't get my mind to figure this out. I have a database with Name, Address, and Car Type tables. 

I'm just trying to do a simple php form to allow the user to enter part of a last name and/or part of a first name to display the data in the tables. My brain has twisted around this and I cannot figure it out.

View Replies !
How To Change One Page To Change All?
i need to know how to create a page where i only have to change one thing on one page so it changes that text or image on every page of my site. in other words i want to be able to create a template, so if i do want to vchange something in the duture, i only have to change on page, instead of changing each individual page.

View Replies !
Load A Button 7 Seconds After Page Load?
I was wondering if there was a way to make an input button appear on a page after an X amount of seconds?

View Replies !
Able To Change The CSS Stylesheet Of A Web Page
I am trying to think through the best way to perform the following :

I need to be able to change the CSS stylesheet of a web page when the user clicks a link like "click for larger print"

I understand basically how this is done but I'm wondering if someone could give me a syntax pointer or two.

View Replies !
Can I Change The Title Of A Page
Maybe this is a stupid question, but is it possible to randomly change the title of a page with PHP?

View Replies !
Change Data On The Same Page To Something Else
I'm trying to change data on this line of code using a drop down option box.

map.centerAndZoom(new GPoint(-79.89505, 40.85708), 10);

When the page opens I want the above data to be used.

I want to use a drop down menu to select a different radius. Lets say 30 miles. I want to update the page so that the above line of code will update and look like this.

map.centerAndZoom(new GPoint(-79.89505, 40.85708), 30);

Here is some sections of code I am using.

<form action='<?php echo $_SERVER['PHP_SELF'];?>' method='post'>
<select name="radius" class="selectBoxes">
<option value="20">20 miles</option>
<option value="30">30 miles</option>
<option value="40">40 miles</option>
</select>
<input type='submit' name='submit' value='Click To Update Map'>
</form>

<script>
map.centerAndZoom(new GPoint(-79.89505, 40.85708), 10);
</script>

View Replies !
Change Variable In Another Page
i have my form displaying information from my mssql database 1 record.  When i click next it goes to php page which from there i want to change the value of a variable in my other php page whihc loads the query for my form then reload my form page with the new record.

View Replies !
Guestbook Page Change
The only problem i have is that i have lots of messages all apperaing on one page How do uIget the script to start a new page automatically once a certain number of messages have been posted.

View Replies !
Change Page Content?
I want to make a page that has a dropdown menu with 13 options on it and when one of the various options are chosen, make it change the information below to the corrresponding information to that option.

View Replies !
Change Content Of Page...
I have a directory called members, and in it i have a seperate page for each member, but I would rather pass a variable in the url that would choose what to have the page display. so you'd go to "member.php?member=person1", and on the page it would be something like this (this is in javascript, since that's all i know)

if (member == "person1") {
document.write("This is member one, he likes swimming, ice cream, etc"); }

if (member == "person2") {
document.write("This is member two, she likes jogging, complaining, coctail parties, etc"); }

how would i do this in php? thanks a lot :)

View Replies !
Detect Change Of Remote Page
i have some links on my site, i need to be absolutely sure that the
html has not been modified, even one character. i would rather not
rely on http headers, just the html (so it is not dependant on the
webserver). should i make a database to actually mirror the page, and
then check against my copy? any better ideas? :)

View Replies !
Page Info Change On Submit
I have a menu on my site that is all pulled out of a MySQL database. So the links actually look like this: <a href="about">About Us</a> And when the user clicks on this link I want the page to go to the database and get the info for "about" and then refresh the page and display the info.

View Replies !
Change The Web Page Contents On Click
I want to sort the data displayed on web page on click of button. I have a combo in which all user have to select the sort order in which he wants to see the data...(The combo box or drop down box contains values "Name, Department Salary and Grade")

The user select the order (say name) by clicking the combo box or drop down box. The moment the user releases the combo or drop down box, I want to refresh the page with new sort order.

View Replies !
Using A Link To Change Page Content
Basically I have a page to enter data into a mysql db via a form. After the data has been input, this form disappears and instead (on the same page) the data is shown in the same format, just not editable anymore.

What I need to do is have a link that will be able to switch between the two states, being 'edit' and 'view'.

View Replies !
Page Editor, Preview As Change
I have a simple html editor on my page that edits the left portion of my page. I wanted to know if I could make the left side of the page load the html from the textbox as I change the html in the textbox. Here is my code for the editing and such: Code:

View Replies !
Change Form Action Page Value
I am using php cURL session to fetch a page from third party site. I want to add a domain name to the action value of all the forms present in the page.

e.g

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$LOGINURL);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$POSTFIELDS);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_REFERER, $_SERVER['HTTP_REFERER']);
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/');
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/');
$result = curl_exec ($ch);
curl_close ($ch);

View Replies !
Refreshing A Page To Display Change In Data
I have a page that scrolls out information from a database. When one
of the records has been completed by the user, they press delete at
the end of the row, and it sends the record id to a processing page
that deletes that record from the database, then returns to the
scrolling page. However, the deleted record still shows on the page
until one presses the refresh tab on the browswer.

Is there some way I can have the page refresh when the processing is
done, so that the changes made will be reflected immidiatly, instead
of the user having to press the refresh button themselves?

View Replies !
Email Forms - Put As Many Fields Without Having To Change The Php Page
I have a php form emailer that simply emails the website owner and also the customer when they fill in the form. at the moment I have to specify what all the fields are named in the form for it to be send off. I want to be able to put in as many fields as I like without having to change the php page as well as the html form. PHP Code:

View Replies !
How To Dynamically Change Page Title Using Php And Require_once?
This is an elementary question, but I've not been able to find the
answer, so here goes:

I am developing a site using php. I have the html header information
in a file that I include in all the pages using the require_once
function.

That is, each page includes the line

<?require_once('PageStart.php')?>

The PageStart.php file essentially defines the header. Omitting the
boring stuff, it's laid out like so:

<html>
<head>
<title>The Title of the Page</title>
<?require_once('styles/PageStyles.css')?>
</head>

<boring stuff snipped>

This works great. The only complaint I have is that there are LOTS of
pages on the site, and using this approach means that every page is
titled "The Title of the Page" When scanning my browser history, I
could have surfed to 30 different pages in the site and they all have
the same title. Makes it hard to know which page I'd like to go back
to.

I'd like to have a way to pass a (sometimes) dynamically generated
page title to the PageStart.php file. I say sometimes because certain
pages (the Main one for example) will always have the same title, so
that could be passed statically. There is another series of pages in
which the same php file accesses a MySQL database to display
information about various family members, and I'd like that title to
be generated dynamically (for example, "All about Mary" or "All about
Ted" depending on the person being described in the page).

Now I KNOW that with php there's a way to do this. I just can't find
it.

View Replies !
Change An Image Based On Landing Page - Possible?
I have 2 landing pages and I need to display a different contact phone number as an image for each page.

The thing that's got me thinking is that I need this image (which is in a standard header file) to stay the same for each visitor across all the pages on my site, depending on which landing page they came in from. I need the phone number image to stay the same for 30 minutes even if a user revisits one or more of the landing pages within that 30 minutes.

So is a visitor comes in from landingpage1 they see phonenumber1 throughout the site for 30mins - if a visitor comes in from landingpage2 they see phonenumber2 across the site for 30mins. What would be the best way to do this? php? javascript? would it need cookies?

View Replies !
Page Numbering - Change My Navigation Menu
i am busy with a image gallery and i have it working. but now i want to change my navigation menu this one: [1] [2] [3] [4]  to:

<<first [1] [2] [3] [4] [5] [6] last>> i have also this code, (c second code ) but i cant link it to my foto folder and unsort it from 10 to 1 ,like the newest u c first. Code:

View Replies !
Change The Header And Footer Of A Web Page Dynamically.
Is it possible to change the header and footer of a web page dynamically. I am generating different reports and want different header and fooeter to appear on 1 report and different header and fooeter to appear on another report

View Replies !
Page Title Change To Correspond Theme
I have poetry.php that allows users to select a title of a poem, which passes a variable through the URL and the poem is then displayed on the same page. I figured I should have the page title change to correspond with the poem selected. If no piece is selected, then no special title text is added to the page title. Code:

View Replies !
Redirect And Change Page Loaded In Iframe
I'm trying to accomplish the following:

I would like to have a page (we'll say page2a.php) redirect the user to another page (page1a.php) upon it loading where page1.php has an iframe that loads page2b.php, but only if the user is redirected to page1a.php from page2a.php.

for the life of me i can't figure out how to do it. I know it can be done....somehow, it's just that it's been quite a while since i've coded anything so i'm a bit rusty. to be quite honest though, even when i was doing a fair amount of coding, it was by the seat of my pants and quite sloppy i'm sure.

View Replies !
Php.ini Sets Max Time To 90 Seconds, Yet I Get A "Max Execution Time Of 30 Seconds Exceeded"
This is weird. When I use getId3 to try to read meta tags out of
multimedia files, I get this error:

Fatal error: Maximum execution time of 30 seconds exceeded in /home/
httpd/vhosts/bluewallmultimedia.com/httpdocs/getid3/getid3/
getid3.lib.php on line 54

But if I run phpinfo(), I get this:

max_execution_time9595

and if I ssh to the server and look in php.ini, this is confirmed:

max_execution_time = 95 ; Maximum execution time of each script,
in seconds

This is on a RackSpace server, running RedHat. It's got Plesk
installed.

View Replies !
Delay In Php
I have an logout.php page which shows

You have successfully signed out.

I need to show this and after 5 seconds the page should automatically
redirect to an home page (index.php). How can I do it?

View Replies !
Best Way To Change Values Of Fields Depending On Page Function.
I have at the moment a create_user.php and edit_user.php

they are the same, create has <input type="text" value="" name="xx"> for a field, and edit has <input type="text" value="<?=$row['rowhere']?>" name="xx"> - I would much rather have just the one page where if page function was edit then it calls in the row otherwise leaves value blank. How can I do this other than

if ($pagefunction == "create") {
echo "<input type="text" value="" name="xx">";
}
elseif ($pagefunction == "edit") {
<input type="text" value="<?=$row['rowhere']?>" name="xx">
}

on every field!?

View Replies !
Change Zoom Level While Opening HTML Page
Can anybody tell, How will i change the Zoom Level while opening HTML
Page.

View Replies !
Meta Tags - Change The Individual Page Title
how I can change the individual page title, description and keyword details for them. Presently, they are all the same and want to personalise each page.

View Replies !

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