Jump to content
php.lv forumi

links spiežams vienreiz...


wingmanz

Recommended Posts

Es gribētu pajautāt, vai kāds šeit esošs un programmētprotošs cilvēks nevarētu izlīdzēt sataisīt vienkāršu (manuprāt) scriptu. Javascritpu.

 

Tātad ir tā, ka ir spiežams links un pēc uzpiešanas lai viņš paliek vai nu rollover stāvoklii un vairs nav spiežams, vai arī pārvēršas par vienkāršu sarkanu textu.Nu tā lai pēc linka uzspiešanas viņš tā kā parādītu kurā sadaļā atrodas. Un tad atkal uzspiežot uz kādu blakusesošu linku iepriekšējais paliek izmantojams, bet otrs uzspiestais tagad pārvēršas.. Tas viss notiek nemainot lappuses, jo linki darbina zem tiem atrodošos ifreimus, bet pati lapa nemainas.

 

Varbūt kādam ir kāda ideja, kā panākt, to lai spaidot pa linkiem mainītos ifreimi zem tiem, bet paši linki kļūtu par sadaļas parādītāju - parastu iekrāsotu textu.. Ceru ka sapratāt domu.. ja nē, tad sakiet..

 

Jau iepriekš paldies! :)

Link to comment
Share on other sites

tā arī sak vienā vārdā, ka vajag `tabbed menu`.

A kāpēc lai neļautu vēlreiz spiest? Pietiek jau iekrāsot citā stilā.

 

function linkClicked(href)
{
  if (lastHref != "undefined")
  lastHref.className = 'default_href';

  href.className = 'current_href';

  lastHref = href;
}


<a ... onclick="linkClicked(this); return true;"> .. </a>

Edited by Delfins
Link to comment
Share on other sites

nu jā es vienkārši nezināju kā to sauc :)

 

izskatās labi.. pag man tik jāsagremo. es nejēdzu programmēt...

 

vai kāds nebūtu tik laipns un nevarētu paskaidrot ko katra rindiņa nozīmē?

Link to comment
Share on other sites

WTFM :D :D

 

 

FGI : "Fucking Google It"

GIYF : for "Google is your friend" and the not so polite version "Google it you Fucker"

GLOG : "Go Look On Google"

JFGI : "Just fucking google it"

JFWI : "Just fucking Wiki it" — a derivative of JFGI found on IRC.

RTFA : "Read The Fucking Article" — commonly used on Slashdot, digg and Fark, and usually said to someone who has obviously posted a comment without reading the relevant article.

RTFN : "Read The Fucking News"

RTFQ : "Read The Fucking Question" — sometimes used by technical instructors to prevent exam errors due to a less-than-thorough reading of the test item by the student. Also "RTMFQ".

RTFS : "Read The Fucking Source" — commonly used by programmers to other programmers or sufficiently technically aware people who would benefit from looking at the source code.

RTFW : "Read The Fucking Wiki" — commonly used in open source projects with their own wiki

STFNG : "Search The Fucking News Group" — probably goes back at least to the advent of DejaNews in 1995. The earliest citation Google Groups has for it is March 1999.

STFW : "Search The Fucking Web" — first seen on Usenet in 1996 (may also mean "so the fuck what?")

TFA : "The Fucking Article" — also commonly used on Slashdot and Fark to refer to the article in question.

UTFG : "Use The Fucking Google" — Variations include: FGI for "Fucking Google It"

UTFSF : "Use the fucking search function" Similar to 'FGI'

UTFW : "Use the Fucking Wikipedia"

UTSL : "Use the Source, Luke" — A parody on the popular Star Wars line.

RTFC : "Read the fucking card" Used by Magic: The Gathering players as a reminder not to make play errors based on not reading the cards.

ESTO : "Equipment Smarter Than Operator" same principle as the article title

PEBKAC : "Problem exists between keyboard and chair"

I-D-TEN-T : replace TEN with 10, the word reads ID10T, or idiot. It is first used in snipe hunting.

PEGA : Pilot Error! Go Around!

WTFM : "Write the Fucking Manual" — Seen in a post on the R-help mailing list: "This is all documented in TFM. Those who WTFM don't want to have to WTFM again on the mailing list. RTFM." (Barry Rowlingson, R-help, October 2003)

Link to comment
Share on other sites

×
×
  • Create New...