Hirdetés
- Samsung Galaxy A54 - türelemjáték
- EarFun Air Pro 4+ – érdemi plusz
- Honor Magic6 Pro - kör közepén számok
- Samsung Galaxy S25 Ultra - titán keret, acélos teljesítmény
- Örömhír: nem spórol Európán a OnePlus
- Xiaomi 15T Pro - a téma nincs lezárva
- Magisk
- Megtartotta Európában a 7500 mAh-t az Oppo
- Milyen okostelefont vegyek?
- Huawei Watch Fit 3 - zöldalma
Új hozzászólás Aktív témák
-
válasz
Meggyi001
#21292
üzenetére
Bocsi, nem formáztam
<!DOCTYPE html><html><head><style>.news-container {display: flex;justify-content: flex-end;align-items: center;height: 50px;background-color: lightgray;}.news-item {padding: 10px;font-size: 20px;color: black;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}</style></head><body><div class="news-container"><marquee class="news-item" behavior="scroll" direction="left">News Item 1 | News Item 2 | News Item 3</marquee></div></body></html>
--------------------------<!DOCTYPE html><html><head><style>.news-container {display: flex;justify-content: flex-end;align-items: center;height: 50px;background-color: lightgray;}.news-item {padding: 10px;font-size: 20px;color: black;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}</style></head><body><div class="news-container"><marquee class="news-item" behavior="scroll" direction="left" id="news-item">Loading news...</marquee></div><script>// Fetch the CNN news from an APIconst apiUrl = "https://api.example.com/cnnnews";fetch(apiUrl).then(response => response.json()).then(data => {// Update the news item text with the fetched newsconst newsItem = document.getElementById("news-item");newsItem.innerText = `CNN Breaking News: ${data.breakingNews} | CNN Latest Headlines: ${data.latestHeadlines}`;}).catch(error => {console.error("Error fetching CNN news:", error);});</script></body></html>------------------------------
<!DOCTYPE html><html><head><style>.news-container {display: flex;justify-content: flex-end;align-items: center;height: 50px;background-color: lightgray;}.news-item {padding: 10px;font-size: 20px;color: black;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}</style></head><body><div class="news-container"><marquee class="news-item" behavior="scroll" direction="left" id="news-item">Loading news...</marquee></div><script>// Fetch the Google news from the APIconst apiUrl = "https://news.google.com/home?hl=hu&gl=HU&ceid=HU:hu";fetch(apiUrl).then(response => response.text()).then(data => {// Parse the fetched data to extract the news headlinesconst parser = new DOMParser();const htmlDocument = parser.parseFromString(data, "text/html");const headlines = htmlDocument.querySelectorAll(".pg-c:not(.pg-c-t)");// Concatenate the headlines into a single stringconst headlinesText = Array.from(headlines).map(headline => headline.textContent.trim()).join(" | ");// Update the news item text with the fetched headlinesconst newsItem = document.getElementById("news-item");newsItem.innerText = headlinesText;}).catch(error => {console.error("Error fetching Google news:", error);});</script></body></html>
Új hozzászólás Aktív témák
- Boyoye digitális beltéri HD tv antenna / 12 hó jótállás
- BESZÁMÍTÁS! ASRock B550M R7 5700X 32GB DDR4 1TB SSD RTX 4070 Super 12GB GameMax Aero Mini ECO 650W
- HIBÁTLAN iPhone 16 Pro Max 256GB White Titanium -1 ÉV GARANCIA - Kártyafüggetlen, 92% Akkumulátor
- Honor Magic V3 Black Hajtogatható csúcsmobil, nagy főképernyő + fedlapi kijelző 12/512 GB
- Bomba ár! Dell Latitude 5410 - i5-10GEN I 8GB I 256SSD I HDMI I 14" FHD I Cam I W11 I Garancia!
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest


