PHP forum

Change contents of a division

Dec 26, 2010 4:34 am
Richard

http://www.dhtmlgoodies.com/scripts/slidedown-menu2/slidedown-menu2.html#


I found this script I like a lot. Based on a <ul> format it makes things
simple.

Kind of like the one I also found www.4thorder.us that is also <ul> based.

Now all I need is a way to change the contents of the main division, where
they show all the lorem ipsum stuff. Which does not change on their demo.
It's all hard coded into a single line of code.

Is there a way in php to do this? Perhaps with file_get_contents or
something?

Dec 26, 2010 1:09 pm
Jerry Stuckle
Re: change contents of a division

On 12/25/2010 11:34 PM, richard wrote:
> http://www.dhtmlgoodies.com/scripts/slidedown-menu2/slidedown-menu2.html#
>
>
> I found this script I like a lot. Based on a<ul> format it makes things
> simple.
>
> Kind of like the one I also found www.4thorder.us that is also<ul> based.
>
> Now all I need is a way to change the contents of the main division, where
> they show all the lorem ipsum stuff. Which does not change on their demo.
> It's all hard coded into a single line of code.
>
> Is there a way in php to do this? Perhaps with file_get_contents or
> something?
>

When its on your server, you can put anything you want in it, using PHP
or any other language (or just static text).

==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================


Previous Thread: Option values with php foreach not working
Next Thread: Why do examples fail to work?

Related Forum Topics
Zero division not caught
Hi,

I have a simple PHP script.

try {
$a = 0;
$b = 32;
$c = $b / $a;
} catch(Exception $e) {
echo "Error occured";
#echo $e->getMessage();
}

Running this script, I get a "Warning: Division by zero" error. The
statements inside the catch block are not...
How di identify a string with contents?
can build a sparse array thus:
<?php
$Hday = array;
$Hday['07/04']="Happy Forth of July";
$Hday["12/25']="Merry Christmas";
?>

later, I can say:

<?php
$today=date("m/d");
$event=Hday[$today];
?>

My question is how do I determine if $event actually captured anything?...
Possible to add non-zipped contents to a zipArchive?
I'm trying to add epub publishing to an established site.

epub specs specify that the file should start with an UNCOMPRESSED file
containing 'application/epub+zip' and named 'mimetype'.

I've created most of the functionality of creating the epub file using
the 'zipArchive' class.

I...
File get contents doesn’t access one URL
http://www.philadelphia.careerboard.com/job/3167962-MUMPS~2FCache-DBA.aspx

The above is a legitimate URL that I can access by copying it into the
address field of my browser. However, as an argument to
file_get_contents I get the error message,

Warning:...
How to change code?
http://www.flashmp3player.org/

http://www.1littleworld.net/songs/Asongs.html

I have embedded the flash mp3 player into the page and it works fine.
I like the layout.
But I need to change the way it lists the songs, to precisely the way I
have them listed on the page.
With the song name...
Using header() to change filename in URL?
Hello -

I have a php script which return a pdf to the browser. Everything
works okay, but if you try to save the pdf the filename is
report.php . I'd like to get it so that I can dynamically rename it in
the php script itself -- e.g. "July Report.pdf" or something like
that.

I was...
Trying to change global array value with $POST
Trying to teach myself PHP, but having a problem updating an array
variable. Below is the code boiled down to the necessary bits.
Problem is that starting value of $B[5] for example stays at 6 even
though a new value is entered and shows correctly as the ending
value? I must be missing...
Dynamically change video URLs
I am new to PHP and Javascript, but I need to develop a website that hosts video files.

I want to have one page that lists all the video with a thumbnail, title (which is clickable), and short description. But, I'm confused as to how I would make each link dynamically direct to the correct...
Change a string where have number after a word
"arts 4, tested 4, passenger 2"

"arts 4, tested 4, passenger 2, arrived 2"

"arrived 2, tested 4, passenger 2, arts 4"

how can change this type of string for to have only the word with 4 at the
end?


so
"arts 4, tested 4"
first steps taht remove the words with 2 at the end;
and...
Change of color on a field value basis in a table...
Hi,
I am a newbie to php. Here I am trying to print the table rows with different colors based on a value of a field. But it is displaying the very first record in different color and next is the other color until the date field changes.

suppose:

id dt
xyz 05 (this is in #a99999...