/    Sign up×
Community /Pin to ProfileBookmark

Help with something

Well im a webdesigner and I know javascript quite well but I dont know how to use it this one specific thing, and Im guessing some php will also be involved but im working on [URL=www.fscrew.org/profile/]my profile page[/URL] and I want it to it displays info about the site I made and then once they click the next button it goes to the next item in the portfolio without changing pages, If you get what i mean I would very much apreciate some help with this.

I thank you in advance.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@VicJul 10.2005 — Following the link I get HTTP 404 - File not found error.

In any case, what you are probably looking for is inserting an <IFRAME> into your page and then load different pages into it using { myIFrameName.location = "the_page_I_want_to_load.htm"} javascript command which is tied to your Next / Previous buttons.
Copy linkTweet thisAlerts:
@bathurst_guyJul 10.2005 — I would avoid using iframes. I would go with PHP.

You can do something like this:
[CODE]
<?php
if (!isset[$_GET]){
// first page
echo '<h1>Page 1</h1>';
echo '<a href="portfolio.php?page=2">next page</a>";
}
elseif ($_GET["page"] == "2"){
// second page
echo '<h1>Page 2</h1>';
echo '<a href="portfolio.php?page=3">next page</a>";
}
elseif ($_GET["page"] == "3"){
// third page
echo '<h1>Page 3</h1>';
echo '<a href="portfolio.php?page=4">next page</a>";
}
..................
[/CODE]

If you know JS then PHP won't be too hard to learn. echo is equivalent to document.write (jus a quik tip so it should be quite easy for you)
×

Success!

Help @patrickj spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...